开发者

Rewrite Specific Querystring URL

Lets say I have a URL as follows: http://www.testing.com/?id=1234

I want to take that specific URL and specific querystring and 301 re开发者_如何学Pythondirect ONLY it with a RewriteRule. So, http://www.testing.com/?id=12345 would not be redirected


Try this:

RewriteCond %{QUERY_STRING} id=1234$
RewriteRule (.*) /some/newurl [R=301,L]

Hope this helps

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜