Force HTTPS Redirects with .htaccess
Forcing HTTPS on your website protects visitor data and improves SEO. The most common method is using .htaccess with Apache’s mod_rewrite module to redirect all HTTP requests to HTTPS. Basic HTTPS redirect Add this to your .htaccess file in the document root: RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] This performs a permanent…
