View Full Version : Redirect http -> https
keefe007
02-01-2007, 02:31 PM
What's a simple way to make an entire site redirect to https?
Marshall
02-01-2007, 03:37 PM
Easiest way is to use mod_rewrite and place a .htaccess file in your public_html directory with the following 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.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.