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

XF 1.5 Converting site to use SSL

Discussion in 'XenForo Questions and Support' started by Britney, Jun 21, 2016.

  1. Britney

    Britney Member

    Hello all,

    Hope that this lands in the correct forum section.

    I'm in the process of moving from an SMF site to Xenforo. As you would imagine there is quite a lot to do since the site has been active for 5 years, many custom plugins installed etc.

    Anyway I want to move in the right direction and use SSL on my site. I have just installed it on the "old" site (the one still using SMF).
    So I currently have:
    The mainsite using SSL and SMF (old website)
    New site on a sub domain using Xenforo (new website)

    The problem:
    The old website can't get full SSL since there is still some HTTP links on it.
    [​IMG]

    When I merge the old website with the new website how should I do in order to make sure that everything gets and HTTPS link?
    How do you do with all custom avatars, images etc from websites that does not use SSL?

    I hope this give an overview of the problem, if not please ask and I will try to give more details.

    Thanks in advance!
     
  2. Pierce

    Pierce Well-Known Member

    Easiest answer is to host all the content thus why you have an image proxy where you host the content of images posted by members.

    The avatars, even uploaded by members are hosted by you? Then it will also be SSL.

    There issue you have is external JavaScript like advertising that doesn't do SSL like Amazon.
     
    Britney likes this.
  3. andybond

    andybond Active Member

    You can also inspect the elements in that window and it will advise which are HTTP and S.

    You can then correct as needed.
     
    Britney likes this.
  4. CrispinP

    CrispinP Well-Known Member

    One of the biggest headaches for me moving from non-SSL to SS-XF was the user content. Historically users posted images hosted on external sites like photo bucket. This would cause everything to break.

    The simplest solution was to use an add-on by @AndyB called Convert Image Without that, it's a PIA.

    The same for hosting stuff externally - either force HTTPS with them or if they don't support it, host it locally.
     
    AndyB and Britney like this.
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Britney likes this.
  6. Britney

    Britney Member

    Thank you!
     
    Last edited: Jun 21, 2016
  7. denam

    denam Active Member

    But the https proxy settings do not work under the following conditions.

    1. The linked 'http' image originates from the same xenforo gallery website.
    2. The linked http gallery image was inserted in the caption text field before the site switched from http to https.

    A lot of my users are inserting gallery images into the image caption field of other gallery images which show as broken images, now.
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

  9. denam

    denam Active Member

    Thank you for the link. I will run the manual sql command.

    Code:
    UPDATE xengallery_field_value SET field_value = REPLACE(field_value, 'http://', 'https://');
     

Share This Page