Forward HTTP to HTTPS

Having invested in this secure certificate (not a lot of money, but some, and also some time to get everything configured right), I figure we ought to make sure people are using them. Especially on our Webmail login page where they’re transmitting their passwords.
So anyway, I just need to add a few lines in the httpd-vhosts.conf file within the “Directory” Section as follows:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://mail.omniweb.com%{REQUEST_URI}

Restart Apache and there it is – any requests on http://mail.omniweb.com will automatically go right over to https://mail.omniweb.com and hence be encrypted in transit.
Good stuff.

This entry was posted in Uncategorized. Bookmark the permalink.

1 Response to Forward HTTP to HTTPS

Leave a Reply

Your email address will not be published. Required fields are marked *