mod_rewrite设置导致服务器抛出HTTP 500错误,而不是404
我有一个服务器与VBulletin论坛(在Apache 2.2,CentOS下工作)。 它在.htaccess中的默认设置如下: RewriteEngine on RewriteCond %{HTTP_HOST} ^gsmforum\.ru RewriteRule (.*) http://www.gsmforum.ru/$1 [R=301,L] # If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory. RewriteBase / RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ – [NC,L] # Forum RewriteRule ^threads/.* showthread.php [QSA] […]