jeudi 16 juin 2016

Setting up URL Rewrite rule for a specific domain SEO

On Google there is the following Url

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

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="" >
  <match url="(.*)" />
  <conditions logicalGrouping="MatchAll">
    <add input="{HTTP_HOST}" pattern="^(localhost:3005/|localhost:3005/)$" />
 <action type="Redirect" url="http://localhost:3005/de/{R:1}" logRewrittenUrl="true" />

Thanks for any help!

Aucun commentaire:

Enregistrer un commentaire