我在重定向到FQDN时遇到问题,我发现所有的解决方案/建议似乎都不起作用,包括SOF here中的解决方案/建议。
此问题涉及内部运行于运行IIS 8.5的应用程序服务器上的一组Intranet网站。该问题特定于Chrome。大多数Web应用程序都使用Windows身份验证,因此不会要求已经登录的用户再次登录。
如果打开IE并键入
我认为唯一可以解决此问题的方法是将使用
<rule name="Redirect to FQDN" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTP_HOST}" pattern="^site1\.company\.com$" negate="true" />
</conditions>
<action type="Redirect" url="http://{HTTP_HOST}.company.com/{R:1}" redirectType="Permanent" />
</rule>
以及这个:
<rule name="Intranet redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^serverName$" />
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="http://serverName.domain.com/{R:0}" />
</rule>
,没有一个有效。
正如我提到的,这只是为了解决Chrome问题; IE很好。