XF 1.5 Force SSL

ChrisTERiS

Active member
#3
I've the same problem. In all my sites (not xF), I've added at .htaccess
Code:
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
and work fine.

Now I tried adding only the last 2 lines in all possible positions in .htaccess that xF uses but (depending on the position) one of the 2 below happens:
  1. Still works in http://
  2. The page is messging
I also tried adding $_SERVER['HTTPS'] = 'on'; in config.php as I read in the above article, but again nothing.

Any suggestion?

Thank you
 
Top