Forum Moderators: Robert Charlton & goodroi
We’ve got the canonical set on the home page… <link rel="canonical" href="http://www.mydomain.com" >
http://www.example.com/ with a trailing slash. it appears that while we remembered to 301 the home page, we hadn’t moved over the configuration for deeper URLs (domain.com/blahblah/).
RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
[edited by: tedster at 4:24 am (utc) on Mar 3, 2011]
[edit reason] display hidden example url [/edit]
<rule name="Redirect" patternSyntax="Wildcard" stopProcessing="true">
<match url="default.aspx" />
<action type="Redirect" url="/" redirectType="Permanent" />
</rule>