Redirect http -> https

Easiest way is to use mod_rewrite and place a .htaccess file in your public_html directory with the following
Code:
rewriteEngine On
rewriteCond %{SERVER_PORT}!443
rewriteRule ^(.*)$ https://www.x.com/$1 [R,L]
I *think* this will work, I am not the best with mod_rewrite but it should work. You need to replace x.com with your domain name.
 
Back
Top