Sharepoint 使用IIS 7.5重新写入条件URL
我们有一个双语SharePoint网站,希望确保所有法语内容都能通过我们的法语域名,我们可以称之为_frenchdomain.com SharePoint中的语言变体由文件夹结构分隔,因此在本例中,您可以转到_http://englishdomain.com/en 英文内容及_http://englishdomain.com/fr 法语内容 我的问题是,如何让IIS识别任何_http://englishdomain.com/fr/*并将其改写为_http://frenchdomain.com/fr/*Sharepoint 使用IIS 7.5重新写入条件URL,sharepoint,iis,url-rewriting,Sharepoint,Iis,Url Rewriting,我们有一个双语SharePoint网站,希望确保所有法语内容都能通过我们的法语域名,我们可以称之为_frenchdomain.com SharePoint中的语言变体由文件夹结构分隔,因此在本例中,您可以转到_http://englishdomain.com/en 英文内容及_http://englishdomain.com/fr 法语内容 我的问题是,如何让IIS识别任何_http://englishdomain.com/fr/*并将其改写为_http://frenchdomain.com/f
<rule name="fr">
<match url="fr/.*"/>
<conditions>
<add input="{HTTP_HOST}" pattern="^frenchdomain.com$" negate="true" />
</conditions>
<action type="Redirect" url="http://frenchdomain.com/{R:0}" redirectType="Permanent"/>
</rule>