View Single Post
  #3  
Old 13th March 2012, 00:52
n0fx n0fx is offline
Member
 
Join Date: Apr 2006
Posts: 36
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Ben View Post
Well I am using mod_rewrite to redirect all http for a host to https, so this should work vice versa:

Code for http -> https


Should do for https to http


But keep in mind, that anyway all users will get the cert warning if it not fits a known CA, is invalid, does not fit the hostname etc. anyway. Only _after_ establishing the ssl conn the rewrite request will be processed.

Also this config needs to be done for every user (afaik you can not set those rewrite rules for all vhosts from a global base?!)

For the code above, do I edit it in the .htaccess file in the root to have my site go from https:// to http://?
Reply With Quote