• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 A problem about HTTPS redirect

#1
"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?"

forum.nededik.com
 

andybond

Active member
#2
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.
 

Brogan

XenForo moderator
Staff member
#3
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:
PHP:
$_SERVER['HTTPS'] = 'on';
 

Brogan

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

You can use the browser inspector to locate the elements.
 

andybond

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

Neal

Well-known member
#16
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"):

Code:
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: