嗨大家在我的localhost上尝试使用.htaccess和XAMPP,我已经检查了phpinfo(),如果加载了mod_rewrite,它就是,所以这不应该是问题..
这是我的.htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA, L]
这是它在每个页面上给出的错误
SERVER ERROR
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
我的htaccess或XAMPP有什么问题? :)
答案 0 :(得分:1)
$ url是空的,请确保你回声!