我想重定向以下URL:
https://domain.de/cms/front_content.php?idcat=650&lang=1 to https://otherdomain.de/preview.html
我写了htaccess规则:
RewriteCond %{QUERY_STRING} ^idcat=650&lang=1$ [NC]
RewriteRule ^cms/front_content.php$ https://otherdomain.de/preview.html? [R,L]
它不适合我,为什么?这是一个CMS,两个域都在里面。
之前有两个不同的规则。重新定位后,上面的重定向效果很好!@thanks to julp