SSL

Discussion in 'Classic ASP' started by cake, Feb 19, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi,

    I am trying to get my site to to use the ssl, so when someone logs onto my site http://www.mydomain.com I want to redirect them to https://www.mydomain.com. I have read the microsoft pages and tried the following code:

    If Request.ServerVariables("SERVER_PORT")=80 Then
    Dim strSecureURL
    strSecureURL = "https://"
    strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
    strSecureURL = strSecureURL & Request.ServerVariables("URL")
    Response.Redirect strSecureURL
    End If

    but all my site does is 'spin' and then times out. If i type it into my browser manually https://www.mydomain.com it works fine!

    Anyway, any advice would be cool, thanks, Ron
     
  2. Can you please post the full code to the page as well as a url for testing?


    Joel Thoms
    DiscountASP.NET
    http://www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page