Force HTTPS on Apache with .htaccess

Here is a gist to force https access of your site through .htaccess. Just add this to your .htaccess file at the route of your site and users will be redirected to https if they do not specify the protocol or try to use http.

Leave a Reply

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