PDA

View Full Version : Proper Redirect Method



MHenscheid
11-04-2004, 12:04 PM
I use a vbscript asp server and need to issue a redirect for a page (Permanent Move). Will a response.redirect be spider friendly (i.e. not spammy)?

bhartzer
11-04-2004, 12:54 PM
You need to deliver a 301 Permanent Redirect. I'm not sure about how to do it with vbscript, but the server's headers need to return a 301 not a 302 or anything else.

On a Windows server you can change it in the Admin area. On a Unix server you can use an .htaccess file to do it.

alienzhavelanded
11-04-2004, 06:13 PM
In ASP you would just need to set the header to send the 301 to the spider if you don't have access to the right settings on the server. They wont like response.redirect

MHenscheid
11-04-2004, 07:00 PM
How do you send the 301 to the spider from the page...or where do you change the settings on the server (I have full access to the server)

bhartzer
11-04-2004, 07:09 PM
On a Windows server you can change it in the Admin area. On a Unix server you can use an .htaccess file to do it.

minstrel
11-04-2004, 11:39 PM
<%
Response.Status = "301 Moved Permanently"
Response.addheader "Location", "http://www.yourdomain.com/newpageurl/"
Response.End
%>