Make Server Force HTTPS

LewisPotato

Member
Hi,

I'm having an issue with my xampp (apache) server not forcing https properly, but when I add '$_SERVER['HTTPS'] = 'on';' to the end of my config.php it works but I'd have the apache server force https instead of xenforo itself, what do I need to do to achieve this?

Thanks
 
In .htaccess at the top:

Code:
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
For some reason the installer still shows as insecure, I don't really want to enter all the MySQL info and the administrator account if the connection is not secure.
 
But local on your private computer? If so, you should try it with lets encrypted for local install.

What are you using in xampp, ubuntu or something else?
 
But local on your private computer? If so, you should try it with lets encrypted for local install.

What are you using in xampp, ubuntu or something else?
It's a production/dedicated server and it runs on Windows Server 2016.

I don't run the forum on my personal computer.

If you need to take a look at the forum itself you can do so here.
 
I did not see any issues with an certificate, Chrome says its all fine.. :unsure:
It's very strange.. If I made up a directory like /thisisannoying/ it says it dont exist and says its secure but if I do something like /styles/flexile/flexile/logo-klodghirz.png/ it'll show as insecure.
191577
191576
 
Back
Top Bottom