Discussion Locked

Forcing SSL or https on website

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have set up SSL on my website which requires users to type https to communicate over a secure connection. Right now if they type in www.myserver.com it takes them to a error page and tells them they must type in https before the URL. I would liketo have them just type in www.myserver.com and have the https automatically added or somehow reditected to https://www.myserver.com. I have followed microsofts Q239875 "HOW TO: Use ASP to Force SSL for Specific Pages" but I cannot get it to work. I don't understand the code in the article so I may have done something wrong. Any suggestions?

3 replies

by banyanman

Why not use a simple html redirect. Using this code or "meta tag" in the HEAD of your default web page for http://www.yourserver.com it will automatically redirect to the SSL site.

(META HTTP-Equiv="Refresh" CONTENT="0; URL=https://www.yourserver.com/index.htm")

Replace the ( and ) with < and > and copy this into a page called default.htm. Make sure your default page is set to default.htm and that this is the only link you give to access your site. HTH.

by s2rock

When I added this code to my default webpage it did not provide the intended result. When I typed in www.mywebsite.com I still just got the 401.4 error page. Then when I typed in https://mywebsite.com that page kept on refreshing itself over and over. So I removed the code from my default webpage and put it before the 401.4 error page and it provided the result but it still keeps the error page in the background until the user supplies the user name and password. I am still in search of a better solution. If nothing better is posted I will give you the points.

This discussion is closed to new replies.