您好我的重定向规则有问题。目前我将所有页面重定向到index.php,路由将检查正确的控制器。
localhost/project/home
localhost/project/home/
,则所有链接都无效。这是我的.htacess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*+)$ index.php?path=$1 [QSA,L]
由于
答案 0 :(得分:1)
似乎你的css文件没有加载,因为它没有获得正确的路径。如果您可以在css链接中使用baseUrl,请更好,如下所示。
<link rel="stylesheet" type="text/css" href="http://localhost/project/css/style.css">