伪静态换版面不对,帮忙解决下_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:24:51
Original
1099 people have browsed it

分页 html 伪静态

网站设置伪静态后首页分页转换有问题,大家帮那个看下
http://www.cdlovelife.com/info-page-2/
Copy after login
伪静态规则为:RewriteRule ^(.*)/info-page-([0-9]+)/$ $1/\?page=$2
但是版面错乱了。
直接浏览器输入
http://www.cdlovelife.com/?page=2
Copy after login
其他均伪静态转换均没问题
请大家帮忙,万分感激!

回复讨论(解决方案)

把css文件的引用改成绝对路径,不要用相对路径。即../css/css.css--> /skin/style/css/css.css 类似

http://www.cdlovelife.com/info-page-2/已经把目录指向/info-page-2/,如果你资源的链接是以相对路径加进来的话自然就读不出来。

解决办法如楼上所说,把资源用绝对路劲,既从根目录开始

http://www.cdlovelife.com/info-page-2/已经把目录指向/info-page-2/,如果你资源的链接是以相对路径加进来的话自然就读不出来。

解决办法如楼上所说,把资源用绝对路劲,既从根目录开始

说的很对

source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!