[英]Mod_rewrite not redirecting for exact Query String
Can anyone advise why this doesn't seem to work?谁能告诉我为什么这似乎不起作用?
I am trying to redirect http://domain.com/?feed=rss2 to http://domain.com/wp-content/staticfeed/rss2.xml我正在尝试将http://domain.com/?feed=rss2 重定向到http://domain.com/wp-content/staticfeed/rss2.Z0F635D0E0F3874FFF8B581C132E6CA7
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} feed=rss2
RewriteRule ^/$ /wp-content/staticfeed/rss2.xml [L,T=application/rss+xml]
Try this...尝试这个...
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} ^feed=rss2
RewriteRule ^(.*)$ /wp-content/staticfeed/rss2.xml [L]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.