Permanent Redirect Not Found Search engines may think www.url.com and url.com are two different sites.You should set up a permanent redirect (technically called a “301 redirect”) between these sites. Once you do that, you will get full search engine credit for your work on these sites.
I know 301 redirect, when it comes to pages, but don’t really know how to go about this.
where do i place the redirect lines and how do I query if they entered www.url.com or url.com?
would you suggest something like this? though I would have to put in every page, but is it an option?
<%@ Language=VBScript %>
<%
If InStr(Request.ServerVariables(“SERVER_NAME”),“www”) = 0 Then
Response.Status="301 Moved Permanently"
Response.AddHeader “Location”,"http://www.sitename.com"
Request.ServerVariables(“HTTP_HOST”)
Request.ServerVariables(“SCRIPT_NAME”)
End if
%>