Link to home
Start Free TrialLog in
Avatar of garethtnash
garethtnashFlag for United Kingdom of Great Britain and Northern Ireland

asked on

301 not working on IIS7

Help,

I have an ASP application which runs on IIS7..

I had a development program running on the same server, and everything there works nicely, but -

I have the following VBScript code on each page -

<%
 if (Request.ServerVariables("HTTP_HOST")) <> LCase(SiteDetails.Fields.Item("JBSURL")) Then
 Response.Status="301 Moved Permanently"
 Response.AddHeader "Location", LCase(SiteDetails.Fields.Item("JBSURL"))
 Response.End
 End If
%>

Now none of the pages load?

If I remove it, they load?

What have I done wrong? Please advise -

Thank you
ASKER CERTIFIED SOLUTION
Avatar of DarinTCH
DarinTCH
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial