我在Windows机器上安装了Xamp服务器。 我已将follwing .htaccess文件放在一个目录中:
# Original # If you modify this file then change the above line to: # Modified <IfModule mod_rewrite.c> RewriteEngine On # Certain hosts may require the following line. # If vanilla is in a subfolder then you need to specify it after the /. # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum) # RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L] </IfModule>
当我尝试访问该目录时,它给我一个500内部服务器错误! 你能帮我么?
我通常不会写重写代码,但是当Web服务器不知道该怎么做的时候会抛出500个重写代码。
在你的情况下,重写代码可能是凌乱的,更多的重写窗口中使用的条件。
尝试并检查Web服务器日志文件,它应该有助于导致错误。