如何301使用%3E字符重定向URL

时间:2013-01-16 22:11:14

标签: .htaccess redirect

我有这个奇怪的网址/andy-sixx-2012-short-hair%3Eandy。我试过这个:

Redirect 301 /andy-sixx-2012-short-hair%3Eandy http://mysite.com/page.html

但是失败了。我可以重定向/andy-sixx-2012-short-hairandy这样的问题没问题,因此问题似乎是%3E 字符。任何帮助都会很棒。谢谢!

1 个答案:

答案 0 :(得分:0)

在mod_alias或mod_rewrite等模块处理它们之前解码URI,因此您需要匹配>而不是%3E

Redirect 301 /andy-sixx-2012-short-hair>andy http://mysite.com/page.html