jmccole83
12/12/2017 - 5:20 PM

HTTP Redirects

Add either of the following to the domain's .htaccess file.

<IfModule mod_rewrite.c>
# BEGIN Force http to https
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*) https://%{HTTP_HOST}/$1 [R=301,L]
# END Force http to https
</IfModule>
<IfModule mod_rewrite.c>
# BEGIN Force https to http
RewriteEngine On
RewriteCond %{HTTPS} =on
RewriteRule ^(.*) http://%{HTTP_HOST}/$1 [R=301,L]
# END Force https to http
</IfModule>