Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试重定向以下页面
http://www.example.com/taksit.asp?urundetay
到
http://www.example.com/
但它重定向到
http://www.test.com/?urundetay
下面的 .htaccess 不起作用,如何解决?
RewriteRule ^(.*)taksit\.asp(.*)$ $1 [R=301,L]
将现有的 RewriteRule 替换为:
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+taksit\.asp\?[^\s&]+ [NC] RewriteRule ^ /? [R=301,L]