我有我的站点的域别名。我想知道如何为domainA.ext请求重定向到https://domainA.ext/folderA
和domainB.ext请求到http://domainB.ext/folderB
Web.config将一个域重定向到非https文件夹,另一个域重定向到https文件夹
目前我有以下规则来重定向所有的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服务器2008年,但我的cms是在PHP中。
你可以定义所有案件和预期结果?例如,如果有人点击“http:// domainB.ext”会怎么样?他们是否必须重定向到“http:// domainB.ext/folderB”或保留在“http:// domainB.ext”? – cheesemacfly 2013-04-09 20:04:02
'http:// domainB.ext/folderB'会做。 – ImproperUsername 2013-04-09 20:12:31