I have nothing less than 10 urls pointing to the same site in umbraco. How can i setup so only one url is available? (to optimize seo...) (preferable this: http://www.xxx.com/test.aspx)
Hmmm you might be right, but I found some things to do that helps this issue: In the UrlRewriting.config I inserted:
<add name="SEO | Trim .aspx for directory URLs"redirect="Application"redirectMode="Permanent"virtualUrl="^/(?![0-9]+.aspx)(?!umbraco/)(.*).aspx$"rewriteUrlParameter="ExcludeFromClientQueryString"destinationUrl="/$1"ignoreCase="true" />
You've got the canonicalisation rule there, you may also want to add a rule to force everything to lower case, as Google will treat different cases URLs (even if they're the same URL) as duplicate content (at least it used to, they may have updated it, but it's worth doing for consistency). Depending on whether you have Umbraco set to force the trailing slash, you may want to add a rule for that too, so that the uRLs are always consistent.
urls in umbraco
I have nothing less than 10 urls pointing to the same site in umbraco.
How can i setup so only one url is available? (to optimize seo...) (preferable this: http://www.xxx.com/test.aspx)
http://www.myweb.com/test.aspx
http://www.myweb.com/test.aspx
http://www.myweb.com/test
http://www.myweb.com/1234.aspx
http://www.myweb.com/1234
http://myweb.com/test.aspx
http://myweb.com/test.aspx
http://myweb.com/test
http://myweb.com/1234.aspx
http://myweb.com/1234
Hi Amigo
Are all of those url's indexed by Google? If not then I don't think you have an issue...
/Jan
Hi Jan,
Hmmm you might be right, but I found some things to do that helps this issue:
In the UrlRewriting.config I inserted:
<add name="SEO | Trim .aspx for directory URLs"redirect="Application"redirectMode="Permanent"virtualUrl="^/(?![0-9]+.aspx)(?!umbraco/)(.*).aspx$"rewriteUrlParameter="ExcludeFromClientQueryString"destinationUrl="/$1"ignoreCase="true" />
<add name="seoCanonical"
virtualUrl="http://myweb.com/(.*)"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="http://www.myweb.com/$1"
redirect="Domain"
redirectMode="Permanent"
ignoreCase="true"/>
You've got the canonicalisation rule there, you may also want to add a rule to force everything to lower case, as Google will treat different cases URLs (even if they're the same URL) as duplicate content (at least it used to, they may have updated it, but it's worth doing for consistency). Depending on whether you have Umbraco set to force the trailing slash, you may want to add a rule for that too, so that the uRLs are always consistent.
Hi Tim,
Any examples of how to do this?
is working on a reply...