htaccess重写服务器错误

时间:2012-08-08 16:43:19

标签: .htaccess xampp

嗨大家在我的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有什么问题? :)

1 个答案:

答案 0 :(得分:1)

$ url是空的,请确保你回声!