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

XF 1.3 Moving site from /forum to root

Bob_R

Active member
#1
I am going to move my XenForo installation from /forum to the root.

Is this the correct procedure?

- First I'm going to remove the original installation and move it/upload to the root.
- Then I'll update my account details in the customers area.
- Update the Board URL in the ACP -> Options -> Basic Board Information
-Add this line to .htaccess after the default XenForo rewrite rules:
RewriteRule ^forums/(.*)?$ /$1 [R=301,L]

Is this the correct order? Have I missed something? Am I doing something I do not need to?

Please advise. Thank you!
 

Brogan

XenForo moderator
Staff member
#2
http://xenforo.com/community/threads/frequently-asked-questions.5183/#post-180455

How can I move my installation to a different directory?
Update the Board URL in the ACP -> Options -> Basic Board Information and move the files to the new directory (or rename the directory). You may need to restart the server for the change to take effect.
Note that redirection will be required to ensure any existing links continue to work.
For example, if the installation is moved from the /community directory to the root, the following line needs to be added to the .htaccess file, after the default XenForo rewrite rules:

Code:
RewriteRule ^community/(.*)?$ /$1 [R=301,L]
 

Bob_R

Active member
#3
Brogan, I'm understanding your response to me as needing only to do Steps 3 and 4 that I listed in original post?
 

Brogan

XenForo moderator
Staff member
#4
Step 1 is is covered in the instructions - "move the files to the new directory".

Step 2 is unrelated to the act of moving your installation, it is account related but yes, the URL in your account should always be up to date and reflect where the software is installed.
 

Bob_R

Active member
#6
Would this be correct for the Basic Board Information?
Board URL: http://www.mysite.com

The primary URL to your board. Do not include a trailing "/" or "index.php". The URL should look similar to this: http://www.example.com/forum

Index Page Route: forums/

If you wish to change the default index page of the forums, you may enter the route path here. The route path is the section of the URL to a page after your main forum directory URL, such as forums/ or pages/page-name/.

Home Page URL: http://www.mysite.com

FYI: Do I even have to fill this in if my board will be offline and I'm planning on installing a home portal before I even bring it back online? Can't I just fill it in after the portal install?

Please answer even if I am NOT planning on installing portal just yet.

Thank you!
 

Brogan

XenForo moderator
Staff member
#7
Would this be correct for the Basic Board Information?
Board URL: http://www.mysite.com
Yes.

The primary URL to your board. Do not include a trailing "/" or "index.php". The URL should look similar to this: http://www.example.com/forum

Index Page Route: forums/
Yes.

A home page URL is only required if you want a [Home] tab.

FYI: Do I even have to fill this in if my board will be offline and I'm planning on installing a home portal before I even bring it back online? Can't I just fill it in after the portal install?

Please answer even if I am NOT planning on installing portal just yet.

Thank you!
Any add-on is separate to the configuration above, which is required.