Umbraco WWW Redirect


/ Published in: ASP
Save to your folder(s)

Used to rewrite all non-www URL's to the www version, on sites using Umbraco. Place the rule in the UrlRewriting.config file, in the 'config' folder.


Copy this code and paste it in your HTML
  1. <add name="seoCanonical"
  2. virtualUrl="http://domain.com/(.*)"
  3. rewriteUrlParameter="ExcludeFromClientQueryString"
  4. destinationUrl="http://www.domain.com/$1"
  5. redirect="Domain"
  6. redirectMode="Permanent"
  7. ignoreCase="true" />

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.