XF 1.5 A problem about HTTPS redirect

"Hello everyone. I have purchased a SSL sertificate for my forum that located at subdomain. I added SSL redirect to the .htaccess file and replaced http with https in forum page in forum options. But when I go to subdomain.mywebsite.com it's still http, not https. How can I fix this problem?"



Active member
Check in the board options that you are using https url not the http one

Use chrome inspector - f12 and security tab to determind if any https resources are being served.


XenForo moderator
Staff member
Have you applied the certificate to the domain?

Once you do, HTTPS should be set by the server automatically.
If it isn't, you can add this to the end of the library/config.php file:
$_SERVER['HTTPS'] = 'on';


XenForo moderator
Staff member
As posted above, that is likely due to mixed/insecure content.

You can use the browser inspector to locate the elements.


Active member
Where did you put the .htaccess file ? at the root of the webserver ? Or in the subdomain folder ( assuming tehre is one ?! )


Well-known member
So, then I should get two. One for the root domain, one for the subdomain?
If the subdomain just redirects to the subfolder/root domain, just buy an SSL for the root domain.

Try this in your XenForo .htaccess (Underneath "RewriteEngine On"):

RewriteCond %{SERVER_PORT} 80
RewriteRule ^/?(.*) https://www.theparacast.com/forum/$1 [R,L]
EDIT - Sorry, just saw it's someone else's thread and they have a subdomain... :confused:
Last edited: