我想重定向以下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,两个域都在其中。
发布于 2022-07-11 12:46:38
以前有两种不同的规则。重新定位后,上述重定向工作良好!@感谢julp。
https://stackoverflow.com/questions/72936535
复制相似问题