htaccess的重写服务器错误重写、错误、服务器、htaccess

2023-09-02 09:51:28 作者:没有最好,只有更好;

大家好与XAMPP的.htaccess在我的本地试验,我曾向phpinfo()函数如果加载mod_rewrite的,它是,这样不应该成为问题。

Hi guys experimenting with .htaccess with XAMPP on my localhost, I have checked with phpinfo() if mod_rewrite is loaded and it is, so that shouldnt be the problem..

这是我的.htaccess

This is my .htaccess

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.+)$ index.php?url=$1 [QSA, L]

这是它给了每个页面上的错误

and this is the error it gives on every page

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? :)

Whats wrong with my htaccess or XAMPP? :)

推荐答案

$网址是空的,请确保您回应了!

$url was empty, make sure you echo out !