How do I direct incoming request to use ssl (https)

Posted on 2003-03-20
Medium Priority
Last Modified: 2010-04-09
In html... what do I need to add to automatically direct incoming http requests to my site to automatically be converted to use https instead?  I want to ensure that all http traffic is ssl encrypted/secured, even if the user forgets to use the 's' in "https" when pointing to the web site.  
Question by:rsggsr
  • 2

Expert Comment

ID: 8178058
use this as the page as your http://www.yoursite.com/index.html

<META HTTP-EQUIV="refresh" content="1;URL=https://www.yoursite.com/">
<TITLE>Page has moved</TITLE>

The user will automatically get redirected to your https site.
LVL 29

Accepted Solution

coreybryant earned 200 total points
ID: 8178256
<SCRIPT language="JavaScript1.1">
<META http-equiv="Refresh" content="0; URL=https://www.new.site/page.html">
This page has moved to a <A href="https://www.new.site/page.html">new location</A>.

I usually use this one - in case the user has the refresh disabled on his browser.

LVL 53

Expert Comment

ID: 8820582
This question has been classified abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.

Unless it is clear to me that the question has been answered I will recommend delete.  It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.

If the user does not know how to close the question, the options are here:


LVL 53

Expert Comment

ID: 9015797
It is time to clean this abandoned question up.

I am putting it on a clean up list for CS.

points to coreybryant


If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.



Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question