Apache-redirect http to https

By | 08/10/2014

I don’t want the logins, or even the content of most of the sites that I manage to be available via HTTP, however as most of us don’t like having to add the HTTPS to the start manually, this works perfectly.

General setup is Ubuntu with Apache2, MySQL, PHP5 and WordPress.

 

<VirtualHost *:80> ServerName www.example.com Redirect / https://secure.example.com/ </VirtualHost>

via Apache-redirect http to https.

Leave a Reply

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

*