我有一个重定向不适用于Apache服务器上.htaccess文件中的模式^ \%251。
%251是十六进制的“ɑ”,并且重定向有效(RewriteRule ^\ɑ.*$ http://test.example.com [R=301,L]
)。
但是,如果我尝试重定向以“%251”(RewriteRule ^\%251.*$ http://test.example.com [R=301,L]
)结尾的URL,则会出现页面未找到错误...
是否有人知道我要尝试执行的正确语法或正确方法?
谢谢 !
if I try to redirect the URL that ends with "%251"
该规则将如下所示:
RewriteEngine on
RewriteRule "\%1$" http://test.example.com/? [R=301,L]
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句