owner
asked on
uppercase in URL
Dear,
I changed my entire website and I want to make shure every old page can be reached. I used as much as possible the old url's, but I changed some subdirectories from .../NL/....aspx to ...../nl/....aspx.
Google indexed all old directories and I don't want to loose pagerank.
Is there a simple piece of code that I can put into the webconfig or somewhere else that looks at the whole URL and in case it is in uppercase, it redirects to the file in lowercase, and has to be SEO friendly.
The reason I want to do this is because my navigation is pointing to the subdirecties in lowercase.
I changed my entire website and I want to make shure every old page can be reached. I used as much as possible the old url's, but I changed some subdirectories from .../NL/....aspx to ...../nl/....aspx.
Google indexed all old directories and I don't want to loose pagerank.
Is there a simple piece of code that I can put into the webconfig or somewhere else that looks at the whole URL and in case it is in uppercase, it redirects to the file in lowercase, and has to be SEO friendly.
The reason I want to do this is because my navigation is pointing to the subdirecties in lowercase.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
With IIS case shouldn't matter - the browser will still retrieve the page whether the path is upper or lower case. Maybe I am not understanding the issue?
ASKER
The problem was caused by the old version of the website
well good luck and thanks for the points
ASKER
<% Response.Redirect("http://www.mywebsite")%>
This is a redirect, not a rewrite!