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.

https://gist.github.com/ambercouch/5b90c9928466caef4cca

Comments

Submit a Comment

Your comment will be revised by the site if needed.