Thursday, July 05, 2007

safe SEO - asp redirect

Is it a permitanent redirect? or tenporary?

If permanent;
In the index.asp (or default.asp) put the code below in the <> section, the location url has to Fully qualified

<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently";
Response.AddHeader("Location","http://www.new-url.com/");
%>

If temp change 301 to 302 in the script

once in place check the redirect is giving a 301 status, otherwise search engines may see it as a spamm site

http://www.webconfs.com/redirect-check.php

No comments: