我的网站有一个域别名。我想知道如何将 domainA.ext 的请求重定向到 domainB.ext 的https://domainA.ext/folderA请求http://domainB.ext/folderB
目前我有以下规则将所有http请求重定向到https,但它将所有请求重定向到https:
<rule name="Redirect to https" stopProcessing="true">
                    <match url="(.mydomain.ext*)" />
                    <conditions>
                        <add input="{HTTPS}" pattern="off" ignoreCase="true" />
                    </conditions>
                    <action type="Redirect" url="https://mydomain.ext}" redirectType="Permanent" />*
                </rule>
它是 Windows server 2008,但我的 cms 是 PHP。