Forum Moderators: open
Can anyone tell me whether that matters to the crawlers? Or do they absolutely only care about the status code?
Appreciate your help..
John
However; I've seen differences in the HTTP header returned by IIS and that returned by the ASP redirect.
What types of differences are you referring to? The spider is going to react based on the server headers. If a 301 is being returned from the server, then the spider is supposed to follow the Permanent Redirect and update its index to reflect the target URI.
if i understand your problem correctly, asp will actually return a 200 if you create a custom error page. what i did is to erase the file altogether, then for my custom 404 page i had a perl script that returned a 301 code if the url passed throught the QUERY_STRING environmental variable (which contains the URL the user intended to go to) was one of the ones i needed to 301, as opposed to a random mistyping of another url, which deserved a 404.
it was all very convoluted but the only way i figured around the problem of iis returning the wrong error codes.
IIS
HTTP/1.1 301 Error
Location: [localhost...]
Server: Microsoft-IIS/5.0
Content-Type: text/html
Content-Length: 166
ASP Response.AddHeader used
HTTP/1.1 301 Error
Server: Microsoft-IIS/5.0
Date: Tue, 10 Aug 2004 21:26:38 GMT
X-Powered-By: ASP.NET
Location: [localhost...]
Content-Length: 0
Content-Type: text/html
Cache-control: private
ASP Response.Redirect only
HTTP/1.1 302 Object moved
Server: Microsoft-IIS/5.0
Date: Tue, 10 Aug 2004 21:11:39 GMT
X-Powered-By: ASP.NET
Location: [localhost...]
Content-Length: 121
Content-Type: text/html
Set-Cookie: ASPSESSIONIDSQASQTDS=IIKNGMJAOFGGGDEELMMONHGG; path=/
Cache-control: private