• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 273
  • Last Modified:

ASP login.asp page

We have a page on our site called login.asp  

How would I go about forcing this page to use HTTPS (ssl) instead of HTTP?
Tom Knowlton
Tom Knowlton
1 Solution
Please try this article:


Also what version of IIS are you using.
Tom KnowltonWeb developerAuthor Commented:
Perfect!  Thanks!

My eventual solution:

<!--#include virtual="/ForceSSL.inc"-->
Some page

Open in new window

   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

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

7 new features that'll make your work life better

It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now