2012-06-04 18 views
0

重写我们有一个双语SharePoint网站,并希望确保所有法文内容都通过我们的法国域名进行传送,只需将其称为_frenchdomain.com即可。有条件的URL使用IIS 7.5

SharePoint中的语言变体由文件夹结构分隔,所以在我们的案例中,您可以访问_http://englishdomain.com/en查看英文内容,使用_http://englishdomain.com/fr查看法文内容。

我的问题是如何才能让IIS承认_http的任何实例://englishdomain.com/fr/*,而是把它改写为_http://frenchdomain.com/fr/*

回答

1
<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> 
+0

哇 - 那很快。谢谢。我会试一试。 – cobber

+0

像魅力一样工作。谢谢 – cobber