K keefe007 Verified User Joined Dec 25, 2004 Messages 282 Feb 1, 2007 #1 What's a simple way to make an entire site redirect to https?
M Marshall Verified User Joined Nov 1, 2004 Messages 143 Location California Feb 1, 2007 #2 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.
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.