Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirect Not working

Status
Not open for further replies.

NJLDoc

Programmer
Jan 25, 2002
93
If InStr(Request.ServerVariables("http_REFERER"),"sitemap.asp")<>0 then
Response.Redirect(" Else
Response.Redirect(" End If

The statement always returns 0 even when I pass in so the optional redirect is not working

This is the only code on the page. the page is named 404.asp so I can react appropriately to what otherwise would be the error notification.
 
Solved. The http_REFERER should be replaced with QUERY_STRING and the code works exactly as expected.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top