Htaccess Mod重写不重写

#Hide Index IndexIgnore * #Define ErrorDoc ErrorDocument 404 http://www.domain.com #REDIRECTS Redirect 301 /page.php http://domain.com Redirect 301 /inc/page.php http://domain.com Options +FollowSymlinks RewriteEngine on #Redirect all pages in a folder to a single URL RewriteRule ^dir/(.*)$ http://domain.com/index.php [L,R=301] #Redirect String RewriteRule ^index.php?var1=value&var2=(.*)&var3=(.*)$ http://domain.com [L,R=301] #Rewrite www to domain RewriteCond %{HTTP_HOST} ^www\.domain\.com [NC] RewriteRule ^(.*)$ http://domain.com/$1 [R=301,NC] 

我正在使用上面的htaccess文件301redirect页面已被删除从服务器到主页。

任何人都可以告诉我为什么行#redirectstring不重写到主页?

这可能是由于未经转换? 在你的匹配string。

尝试^index\.php\?var1=value&var2=[^&]*&var3=[^&]*$