1. 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

Discussion in 'XenForo Questions and Support' started by Bob_R, Jun 27, 2014.

  1. Bob_R

    Bob_R Active Member

    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!
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    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 likes this.
  3. Bob_R

    Bob_R Active Member

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

    Brogan XenForo Moderator Staff Member

    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 likes this.
  5. AzzidReign

    AzzidReign Well-Known Member

    Bob_R likes this.
  6. Bob_R

    Bob_R Active Member

    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!
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Yes.

    Yes.

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

    Any add-on is separate to the configuration above, which is required.
     
    Bob_R likes this.
  8. Bob_R

    Bob_R Active Member

    One more quickie question.

    I have two htaccess files

    .htaccess and htaccess.txt

    Which do I edit? Or, both?

    TY.
     
  9. AzzidReign

    AzzidReign Well-Known Member

    .htaccess
     
    Bob_R likes this.

Share This Page