Home > Backend Development > PHP Tutorial > 子站点怎么正确显示文章内容

子站点怎么正确显示文章内容

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 11:54:31
Original
959 people have browsed it

子站点如何正确显示文章内容
在做好的网站下面做一个手机网站子站点,但是根目录和父站点不一样,图片路径自然不正确,又不能使用字符串替换数据库中的路径?
------解决方案--------------------
同一域名下,用绝对路径即可
不同域名下,设置虚拟目录(ALIAS)映射

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Error when using field alias
From 1970-01-01 08:00:00
0
0
0
Alias ​​routing prompt parameter error
From 1970-01-01 08:00:00
0
0
0
php - Reading of alias content
From 1970-01-01 08:00:00
0
0
0
How to set alias with parameters in git
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template