There's been many posts on here about how to modify web.config to show directory urls which is working fine. Is there a way to redirect the .aspx url also?
For example now on my installation a page is visible at both: mysite.com/contact and mysite.com/contact.aspx
It seems like this could be read as duplicate content by search engines, i'd like mysite.com/conact.aspx to redirect (301) to mysite.com/contact...
True, I didn't even know that the directory url's with .aspx still work with directoryUrls enabled :P So Google didn't find any of them in the website I made...
@Paul, you could be right, maybe it isn't worth worrying about but the solution turned out to be so simple that I think it is worth it just to make sure.
Plus it prevents any of my colleagues from being able to tell me I should have a permanent redirect there if they do any investigating ;)
Directory Urls and 301
There's been many posts on here about how to modify web.config to show directory urls which is working fine. Is there a way to redirect the .aspx url also?
For example now on my installation a page is visible at both: mysite.com/contact and mysite.com/contact.aspx
It seems like this could be read as duplicate content by search engines, i'd like mysite.com/conact.aspx to redirect (301) to mysite.com/contact...
Thanks for any advice!
You could use UrlRewriting:
Regex: ^(.+).aspx$
Group 1 contains de directory-url :-)
And on the web is lot's of information about UrlRewriting itself (UrlRewriteNet), like: http://forum.umbraco.org/yaf_postst8416_301-redirect-using-urlrewritingconfig.aspx
Is it even worth worrying about? If all your navigation and links point to the directory URL's then Google will never know if it is .aspx/.html/.php
@Paul
True, I didn't even know that the directory url's with .aspx still work with directoryUrls enabled :P So Google didn't find any of them in the website I made...
Here's a great forum post for anyone who's interested, thank you for pointing me in the right direction!
http://our.umbraco.org/forum/using/ui-questions/11113-Will-switching-useDirectoryUrls-to-TRUE-break-incoming-links
and a wiki:
http://our.umbraco.org/wiki/how-tos/how-to-switch-your-site-to-usedirectoryurls=true-when-it-was-previously-=false
@Paul, you could be right, maybe it isn't worth worrying about but the solution turned out to be so simple that I think it is worth it just to make sure.
Plus it prevents any of my colleagues from being able to tell me I should have a permanent redirect there if they do any investigating ;)
is working on a reply...