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.


Submit a Comment

Your comment will be revised by the site if needed.