Forum Moderators: open
Here's today's problem:
I have inherited an ASP site that uses a custom 404 page to handle redirects for files that no longer exist. The redirects have always worked fine, but now that I've been learning about SEO, I want to make sure that all of my redirects are crawler-friendly.
I've heard this 301 thing mentioned a lot in the same context. Other than the fact that it's a permanent redirect as opposed to a temporary 302, I'm not quite sure what it is, or how to do it.
Is what I'm doing with the 404 page enough to make the crawlers happy? The reason I'm stressing is because I went into one of those "HTTP Header Viewer" tools and entered one of my redirected URLs. Although I wasn't quite sure what I was looking for, I noticed that a 302 was returned, and not a 301. No clue why. Is this normal?
How do I make my 404 redirects give the proper 301 code to the crawlers? I don't see anything in my ASP code that does this.
Am I making sense? Please excuse me if I'm not using proper terms, etc.
From this old thread. [webmasterworld.com]
HTH
<added>As to the block in robots.txt, there really isn't a reason for it to be there unless the last person somehow had a link to it. If I were you, just keep it there.</added>
Macrost, I saw your same advice in some other threads, but nowhere in my script is there anything similar to your code. No Response.Status, etc.
All of my redirects appear in a long list like this:
<%
...
dim arrRedirects(48)
arrRedirects(0) = Array("/blah/aa.asp","/bloh/bb.asp")
arrRedirects(1) = Array("/bluh/cc.html","/blah/dd.asp")
arrRedirects(1) = Array("/bloh/dd.html","/bluh/ee.asp")
...
%>
Being new to ASP, this means nothing to me! I just know that the first one is the obsolete one, and the second one is the redirect.
I'm thinking that what's going on is something like what Tony suggests...that it's somewhere in the IIS configs. If so, could it be as simple as chaging those cofigs from 302 to 301?
Otherwise, Macrost, could there be a way to implement your code to "coexist" with what I already have?
:-) Thanks!