在Apache中,.htaccess文件覆盖mod_rewrites的httpd.conf文件吗?
在我的Apache httpd.conf文件中,我在VirtualHost标签中有这个声明。 RewriteEngine On RewriteCond %{HTTP_HOST} !^www.shanestillwell.com$ [NC] RewriteRule ^(.*)$ http://www.shanestillwell.com/$1 [L,R=301] 而这个在我的.htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] 我的httpd.conf的规则似乎被忽略。 .htaccess的规则是否清除了httpd.conf重写规则?