【发布时间】:2015-03-13 20:23:50
【问题描述】:
我有这个网址:
localhost/prefinal/profile.php?username=Admin
并且想要成功:
localhost/prefinal/profile/Admin
我使用 .htaccess 文件并设置以下规则:
RewriteRule ^profile/([^/]*)$ /prefinal/profile.php?username=$1 [L]
页面工作正常..但 CSS 无法在其中工作:
应该是:
谢谢
【问题讨论】:
-
您需要在 html 的标题中添加 base href='' ..
标签: php css .htaccess url mod-rewrite