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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 11:54:31946browse

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

Statement:
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