如果REQUEST_URI
包含/register/affiliate/32
RewriteCond %{REQUEST_URI} /register/affiliate/32
RewriteRule (.*) https://affiliate.example.com [R=301,L]
它工作正常,但它还包括重定向网址中的REQUEST_URI
如何阻止它,重定向的URL中不包含URI?
答案 0 :(得分:0)
尝试这样,
RewriteCond %{REQUEST_URI} ^/register/affiliate/32
RewriteRule ^(.*)$ https://affiliate.example.com [R=301,L]