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

XF 1.5 .htaccess after moving XenForo Directory

Discussion in 'XenForo Questions and Support' started by Zynektic, Sep 30, 2015.

  1. Zynektic

    Zynektic Well-Known Member

    Hi there,

    Currently a site in domain.com/forums and wishing to move it into domain.com. SSL is configured and I added the following at the top of the .htaccess file.

    RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    When the SSL was added as we did not want it to be added to the WordPress inside the root until things were ready to be moved. Do I need to add anything else to the .htaccess when moving the forums other than altering the ACP URL?

  2. Mike

    Mike XenForo Developer Staff Member

    Do you mean with respect to those lines? They're generally location independent.

    In terms of XF itself, it's really just the ACP URL that needs to be changed.
  3. Zynektic

    Zynektic Well-Known Member

    Those lines were just to get SSL working on the forum (not sure if it needs editing to force SSL and the site to non-www only?) and will keep those on top of moving it to root so will update the ACP URL, thanks.

Share This Page