Quick guide for .htaccess redirects
Redirect HTTPS traffic to HTTP: RewriteEngine On RewriteCond %{HTTPS} on RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Redirect HTTP traffic to HTTPS: RewriteEngine OnRewriteCond %{HTTPS} offRewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] Redirect both HTTPS and HTTP to HTTPS without www: RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www. [NC] RewriteCond %{HTTP_HOST} ^(?:www.)?(.+)$ [NC] RewriteRule ^(.*)$ https://google.com/$1 [R=301,L] Redirect both HTTPS and…