我是 Rewrite ISAPI 的新手,需要帮助将 URL 从现有重定向到我们的标准 IIS 页面。
当前页面:https ://store.md1.company.com/store/1/home
重定向到https://store.md1.company.com
我目前使用 Helicon ISAPI 3 进行所有代理重写和重定向,但我尝试了多种方法,但我无法到达那里。任何帮助将不胜感激。
代码尝试:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^store.md1.company\.com\/store/1/home$ [NC]
RewriteRule ^(.*)$ https://store.md1.company.com/$1 [QSA,R=301]