I already did it, it didn’t work with scripts either
I have added in my htaccess file that I have in my forum add this
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:CF-Visitor} !{“scheme”:“https”}
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301
You might also need to remove the duplicate RewriteEngine On line, else the rules after the ones XenForo has might not be applied.
Also, a question, are you paying for your XenForo installation? Because hosting pirated software is illegal and not allowed on free hosting. You might also spend your money on hosting that goes with it instead of going the free way for software you really like, or use free alternatives such as Flarum or phpBB instead.
There are two RewriteEngine On lines, one at line 10 and another one at line 26 (I couldn’t see the line numbers as you’re using the default Notepad, so I had to count them by hand with the screenshot you sent); this is what I meant with duplicate, so you’ll have to remove the second one.
I also had to search something on Google and only forcing HTTPS through the .htaccess file is supposed to work; then I don’t know if there are options on your administration panel to change the URL to HTTPS or something else…