以下是我的示例网址:
http://www.mywebsite.com/login/return_url/64-L21wMy1tdXNpYy9zZWFyY2gvc2luZ2VyL3RpdGxlL05vc2EvcGFnZS80
http://www.mywebsite.com/login/return_url/64-L21wMy1tdXNpYy9hbGJ1bXMvNjM%3D
http://www.mywebsite.com/login/return_url/64-L21wMy1tdXNpYy9hbGJ1bXMvMzcyLw%3D%3D
http://www.mywebsite.com/login/return_url/64-L21wMy1tdXNpYy9hbGJ1bXMvNDIwLw%3D%3D
http://www.mywebsite.com/login/return_url/64-L2xvZ2luL3JldHVybl91cmwvNjQtTDIxd015MXRkWE5wWXk5aGJHSjFiWE12TXpJeEx3JTNEJTNE
http://www.mywebsite.com/login/return_url/64-L21wMy1tdXNpYy9hbGJ1bXMvMjA%3D
我想将包含64-L21的所有网址重定向到上面列出的网址http://www.mywebsite.com/login/
我试过了:
RewriteCond %{REQUEST_URI} 64-L21
RewriteRule .* /login/ [R,L]
以上规则适用于
等网址http://www.mywebsite.com/login/return_url/64-L21wMy1tdXNpYy9zZWFyY2gvc2luZ2VyL3RpdGxlL05vc2EvcGFnZS80
http://www.mywebsite.com/login/return_url/64-L21wMy1tdXNpYy9hbGJ1bXMvNjM
但只要网址中有百分号(%),它就不起作用
是否有人请提供htaccess规则来解决百分号(%),我希望有和没有符号的网址都可以重定向
提前致谢