Ok, I have the following code to make sure that www.webspider.com
is displayed all the time versuse webspider.com.
Dim domain_Name, theURL, QUERY_STRING, HTTP_PATH
domain_Name = LCase(Request.ServerVariab
If domain_Name <> "www.webspider.com
HTTP_PATH = Request.ServerVariables("P
If Left(HTTP_PATH, 8) = "Default.aspx" Then
HTTP_PATH = ""
QUERY_STRING = Request.ServerVariables("Q
theURL = "http://www.webspider.com
" & HTTP_PATH
If Len(QUERY_STRING) > 0 Then
theURL = theURL & "?" & QUERY_STRING
Response.Status = "301 Moved Permanently"
The problem is, when I'm testing new code and there's the "localhost" header it tries to redirect to the website. Yes, I can comment it out but having to do this every time I modify my code is a pain. Anyone know how to properly add "localhost" to the options? I've tried several ways with no success.