• 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

Zynektic

Well-known member
#1
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.

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

Thanks
 

Mike

XenForo developer
Staff member
#2
Do I need to add anything else to the .htaccess when moving the forums other than altering the ACP URL?
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.
 

Zynektic

Well-known member
#3
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.