Force your site to load securely with an .htaccess file

Forcing the domain to serve securely using HTTPS (for any site) The following forces any http request to be rewritten using https. For example, the following code forces a request to http://example.com to load https://example.com. It also forces directly linked resources (images, css, etc.) to use https: RewriteEngine OnRewriteCond %{HTTPS} !=onRewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] If this isn’t working …

Force your site to load securely with an .htaccess file Read More »