Archive / October, 2007

Redirect to a single site

Use this ASP code to redirect your pages to a single site. Search engines may penalize you for duplicate content if they find content at yoursite.com and www.yoursite.com or multiple domains pointing at the same site. ‘—————————————–If  lcase(Request.ServerVariables(“HTTP_HOST”))=”lyonscom.com” OR lcase(Request.ServerVariables(“HTTP_HOST”))=”www.sitenumber2.com” OR lcase(Request.ServerVariables(“HTTP_HOST”))=”sitenumber2.com” Then Response.Status = “301 Moved Permanently” If lCase(Request.ServerVariables(“URL”)) = “/default.asp” Then   ‘ change home page here  If Len(Request.Querystring)=0 […]

ASP to PHP Convert Functions

This site might be useful for finding the PHP equivalents of ASP tasks: http://www.resources.fortunedesign.co.uk/jspack/asp2php.html Also, here is a chart of difference between the two languages: http://design215.com/toolbox/asp.php