Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sharepoint 使用IIS 7.5重新写入条件URL_Sharepoint_Iis_Url Rewriting - Fatal编程技术网

Sharepoint 使用IIS 7.5重新写入条件URL

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

我们有一个双语SharePoint网站,希望确保所有法语内容都能通过我们的法语域名,我们可以称之为_frenchdomain.com

SharePoint中的语言变体由文件夹结构分隔,因此在本例中,您可以转到_http://englishdomain.com/en 英文内容及_http://englishdomain.com/fr 法语内容

我的问题是,如何让IIS识别任何_http://englishdomain.com/fr/*并将其改写为_http://frenchdomain.com/fr/*


    <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>