/ 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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<add name="seoCanonical" virtualUrl="http://domain.com/(.*)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="http://www.domain.com/$1" redirect="Domain" redirectMode="Permanent" ignoreCase="true" />