PDA

View Full Version : Crawlers & HTTP Header for 301


JohnK
08-10-2004, 11:12 PM
I've noticed a difference between the HTTP header returned from IIS on a redirect and an ASP 301 redirect. I already understand that the SE's don't care about the message. Do the SE's care about any other part of the HTTP Header or just the actual status code?

Can anyone help? - And by the way the SES conference in San Jose was GREAT!!!!!

John

Jeff Martin
08-11-2004, 12:44 PM
Ive used ASP for several years and I believe all the SEs care about is the code.

Did you know that you can modify the reponse header and supply the SEs with whatever code and page location you want? Heres the code for the TOP of your ASP page:

<%@ Language=VBScript %>
<%
Response.Status = "301 Moved Permanently"
Response.Addheader "Location", "http://www.domain.com/newurl/"
Response.End
%>

JohnK
08-11-2004, 01:36 PM
Thanks for responding. Yeah, I knew about how to do the redirect. However; we are also noticing a difference in the header from IIS and the asp redirect. For instance, the ASP redirect has a X-Powered-By and Cache-Control property in the Header and IIS doesn't have this. Do the SE's care? I wouldn't think they would.

John