redirecting code

Discussion in 'General troubleshooting' started by schtevmal, Sep 25, 2012.

  1. I have taken a stab at the code for redirecting to a file. I already have http://www.strokecaregiver.org/ pointing to my root domain, http://www.strokenet.info/. I am wanting for visitors to go to http://www.strokecaregiver.org/handbook.htm. The file for handbook.htm is in my caregivermanual folder.

    See attached screenshot of my ftp.

    The code I wrote is:

    <%
    If InStr( UCase(Request.ServerVariables("ftp.strokenet.info")), UCase("caregivermanual.strokenet.info") ) > 0 Then
    Response.Redirect("caregivermanual/handbook.htm")
    End If
    %>

    Could you please correct it?
     

    Attached Files:

  2. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    The code should look like this:

    It needs to be saved in a file like index.asp, default.asp, etc.

    What the code does is whenever a user types in http://caregivermanual.strokenet.info, it will display this page:

    http://caregivermanual.strokenet.info/handbook.htm
     

Share This Page