jeudi 16 juin 2016

Setting up URL Rewrite rule for a specific domain SEO

On Google there is the following Url

http://ift.tt/1rs3nkK

So now my page is now available in multi language and i have now the language in the url, and it looks like this

http://ift.tt/1Yu4xto

So I will redirect all old links with url rewrite in the web.config, but I can't find out the match condition to find out if there is a languege insite the url.

My role:

<rule name="mydomain.com" >
  <match url="(.*)" />
  <conditions logicalGrouping="MatchAll">
    <add input="{HTTP_HOST}" pattern="^(localhost:3005/|localhost:3005/)$" />
  </conditions>
 <action type="Redirect" url="http://localhost:3005/de/{R:1}" logRewrittenUrl="true" />
</rule>

Thanks for any help!

Aucun commentaire:

Enregistrer un commentaire