HTTP to HTTPS Forwards Please

Posted on the June 27th, 2008 under Rants,Technology / Computing by jglemza

Why do some sites that require a secure connection not automatically forward you to the secure site? How hard is it to do? Not very! (with Apache at least)

#How about a simple .htaccess file in the webroot?
#Force SSL for example.hwarf.com
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

Hopefully some sites will pay attention to this. I’m not mentioning any URLs.

Bookmark and Share

One Response to 'HTTP to HTTPS Forwards Please'

  1. November 13, 2008 at 9:42 pm
    klawson

Leave a Reply




XHTML::
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>