Canonical Redirect with classic ASP shows site folder
问题 If pointed to http://domain.com it redirects to http://www.domain.com/thesite/index.asp which is the actual location. No matter the page, it always appends the actual folder path. ive been using this script for canonical redirection, included in every page. If InStr(Request.ServerVariables("SERVER_NAME"),"www") = 0 Then Response.Status="301 Moved Permanently" Response.AddHeader "Location","http://www." &_ Request.ServerVariables("HTTP_HOST")&_ Request.ServerVariables("SCRIPT_NAME") End if I