Force non-www URLs to www URLs Umbraco CMS

You need to add:  redirectMode=”Permanent”

               <add name="domain.com"
                 redirectMode="Permanent"
                 redirect="Domain"
                 ignoreCase="true" rewriteUrlParameter="IncludeQueryStringForRewrite"
                 virtualUrl="http://yourdomain.com/(.*)"
                 destinationUrl="http://www.yourdomain.com/$1" />
Advertisements