Hi,
Longtime reader, first-time poster.... sorry to ask yet another question about this but I can't find what I need to know anywhere.
We've recently moved the core content on our site from one folder to another for technical reasons. I.e.
WAS
www.ourdomain.com/asp/content.asp
NOW
www.ourdomain.com/dhe/content.asp
The search engines are finding the new content but are still displaying the old URLs, presumably because of the redirects we've put on pages that used to be in the old folder:
Example of basic redirect currently used:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
if request.QueryString()<>"" then
response.redirect("/dhe/home.asp?" & request.QueryString())
else
response.Redirect("/dhe/home.asp")
end if
%>
(I've edited that so if it's not syntactically correct then sorry; you get the idea of what we're doing anyway. It works in terms of sending our customers to the correct page.)
In order to get the SE's to drop the /asp/ folder completely, I think I need to do a 301 redirect from the /asp/ to /dhe/ folder but have no idea how to do this within a folder. We're using Windows 2003 Server and I have 301 redirected some old domain names we own using this feature:
My questions:
Is a 301 redirect the correct thing to do in this circumstance?
If so, how do I setup a redirection from all the content in the old /asp/ folder to the new /dhe/ one, using Windows Server 2003, such that the SE's will continue to love us?
If not, what should we be doing?
Hope that's clear, thanks very much if you can offer any help.