Posted By

batfan on 04/22/11


Tagged

webconfig


Versions (?)

Umbraco WWW Redirect


 / Published in: ASP
 

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.

  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  

You need to login to post a comment.