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

XF 1.5 Problems with SSL

Discussion in 'Troubleshooting and Problems' started by balkanminion, Dec 25, 2015.

  1. balkanminion

    balkanminion Member


    i imported today from wbb 4.1 to xenforo my Forum. I had some troubles, but most things i fixed and i am glad to use xenforo.

    Now i got a problem with SSL, when i am opening my page over https:// its something damaged.


    over http://balkanonline.net/ is everything ok.
    Good Night !
  2. Placid

    Placid Member

    Are you hot linking any images from other websites? If so you should host them on your own server / hosting and also change all existing urls that are 'HTTP' to 'HTTPS'
  3. balkanminion

    balkanminion Member

    No i am not linking images from other website. Everything i am hosting on my server. I am using SSL from Cloudflare, with WBB 4.1 i had no problems.
  4. Placid

    Placid Member

    did you goto admin cp -> options -> basic board information and change the board url to the https one?
  5. Mike

    Mike XenForo Developer Staff Member

    So CloudFlare isn't actually requesting your site via SSL? That's the problem. You need to force XF to think it's accessed via SSL by putting this in config.php:
    $_SERVER['HTTPS'] = 'on';
  6. balkanminion

    balkanminion Member

    Damn i dont have any olan in SSL, but when i force over Admin Control Panel the site is stil broken without any Style. I just use http: in ACP so my User can Login to the website. Can some1 take a look over it?

    Thank you
  7. Mike

    Mike XenForo Developer Staff Member

    I'm confused because you said you're using SSL via CloudFlare, but now you're saying you're not using SSL at all.

    I also loaded your site and it seemed fine at a glance so you'll need to explain specific steps to reproduce the issue.
  8. balkanminion

    balkanminion Member

    No, i am using SSL via ClooudFlare, but with xenforo it doesnt work. I got problems with it, my page looks from 1995.

    With WBB i had there no problems. I have disabled SSL in Cloudflare now becouse this problem. It works now without SSL.

    So here the steps.

    1. I had WBB and i installed ago 2 Months Cloudflare without any problems.
    2. Yesterdey i imported everything to MyBB
    3. Then Import from MyBB to Xenforo
    4. After it, i moved Xenforo to the main Folder on my Server, and WBB to a subfolder.
    5. When i visit my page over HTTP:// everything is okey, but over HTTPS:// there is no Design, no images, nothing.
  9. Placid

    Placid Member

    On cloudflare do you have SSL Set to full? and the always use ssl rule turned on? also as mike said put this in /library/config.php
    $_SERVER['HTTPS'] = 'on';
  10. balkanminion

    balkanminion Member

    I think you dont understand me, on Burning Board 4.1 it worked, so it must be "on ". I dont have the root PW for my server, but i contacted my Hoster.

    With SSL my Xenforo looks now:


    Happy new Year !
  11. Mike

    Mike XenForo Developer Staff Member

    You're forcing your site to HTTP right now, so we can't verify, but if you're going to force HTTPS, you need to add the line discussed to your library/config.php file.
  12. Placid

    Placid Member

    I believe the reason it looks like that is because you haven't turned SSL on, your only visiting the https link but you will need to do as Mike said
  13. doublespaces

    doublespaces Active Member

    I have and want traffic arriving by http as well as https. Is there a way to force ssl only when https is being requested?
  14. badstraw360

    badstraw360 Member

    I have the exact same problem, I'm using a lets encrypt certificate and I already put the code in config.php, but the page loads without any image at all.

    I also have the SSL option set to "full":

    Captura de pantalla 2016-12-08 a la(s) 14.27.38.png

    Any ideas?
  15. doublespaces

    doublespaces Active Member

    Some browsers will not display insecure content in a secure website.

    So if you are linking to non ssl images somewhere inside of your ssl website then browsers will not display them. That is what the built in image proxy is for. It reroutes those external insecure images through your own, secure domain and reserves them to the browser.
  16. badstraw360

    badstraw360 Member

    Yes all I see is text but no formatting, and also I get the same http version of the site. I even tried to use this code to change the rewrite rules in my htaccess:

    RewriteCond %{HTTPS} off
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    But it doesn't make any difference, I also changed the board url and I still get a blank page. Actually my board don't have any external images, everything is located in the database.

    I would really appreciate any help. :)
  17. Robru

    Robru Well-Known Member

Share This Page