XenForo, always use SSL?

JordanH

Well-known member
Ok, so I'm trying to get an SSL to work on my forum (www.GamingSection.net) and I want the forum and all of its content to always load in https:// How can this be done well also always having the www. infront of it.

I looked in the XenForo backend, there is no where to check off saying to use SSL or even if you put https:// as your forum url, if someone loads the site from just http:// it won't switch over.

So question is, how can I get SSL to work with XenForo? & to always load in SSL
 
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Place this in the .htaccess

Warning, it will auto SSL all the sub domains you have on your hosting account.

To disable on sites you don't want SSL, go into the website folder and create a new .htaccess with this:
RewriteEngine Off
RewriteCond %{HTTPS} on
 
Top Bottom