﻿<RequestUrlRemappings>
  <!-- make sure that *.dk and *.com start page requests go to the same URL -->
  <Remapping requestPath="/" requestHost="contoso.dk" requestPathStartsWith="false" requestHostEndsWith="true" rewritePath="/dk/Contoso" rewriteHost="www.contoso.dk" />
  <Remapping requestPath="/" requestHost="contoso.com" requestPathStartsWith="false" requestHostEndsWith="true" rewritePath="/dk/Contoso" rewriteHost="www.contoso.dk" />

  <!-- handle a specific host name, so it goes to a matching language version -->
  <Remapping requestPath="/" requestHost="contoso.nl" requestPathStartsWith="false" requestHostEndsWith="true" rewritePath="/nl/DutchContoso" />

  <!-- catch requests where .dk is serving /nl/ content (and visa versa) and fix host name -->
  <!-- forcing the client on to the 'correct' host name can have a positive influence on search engine rankings -->
  <Remapping requestPath="/dk/" requestHost="contoso.nl" requestPathStartsWith="true" requestHostEndsWith="true" rewriteHost="www.contoso.dk" />
  <Remapping requestPath="/nl/" requestHost="contoso.dk" requestPathStartsWith="true" requestHostEndsWith="true" rewriteHost="www.contoso.nl" />

</RequestUrlRemappings>