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

move site to /community folder

Discussion in 'Installation, Upgrade, and Import Support' started by masterchief, Mar 4, 2013.

  1. masterchief

    masterchief Well-Known Member

    I want to move my XenForo site to /community folder... what simple steps to take? I have done this before, just want to revisit before I actually move data. regards
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    1) Move site
    2) Update board URL in Options > Basic Board Information (very important for things like confirmation e-mails and link building)
    3) Optional: Setup redirects
     
    Jake Bunce, Morgain and Dodgeboard like this.
  3. masterchief

    masterchief Well-Known Member

    1) move site - refresh me please, all folders and php files from the root... correct.

    NOTE - index.php should stay in root????
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    All folders and PHP files from the root should be moved (including index.php).
     
    Jake Bunce likes this.
  5. DBA

    DBA Well-Known Member

    FYI last time I did this I also had to restart the httpd service on the server.
     
  6. masterchief

    masterchief Well-Known Member

    everything moved over.. no trouble.... did a redirect via htaccess

    my objective is to create splash page similar to XenForo site, and direct traffic via menu options
     
  7. Lee

    Lee Well-Known Member

    How well indexed is your website by search engines? As this will have a drastic impact on your search position.
     
  8. masterchief

    masterchief Well-Known Member

    not worried about that... thanx for mentioning that .. peace
     
  9. Lee

    Lee Well-Known Member

    Just making sure you knew the implications :)
     
  10. masterchief

    masterchief Well-Known Member

    sure do... thanx again
     
  11. DBA

    DBA Well-Known Member

    Not if you have redirects setup correctly.
     
  12. masterchief

    masterchief Well-Known Member

    I redirected to /community folder:

    Code:
     
    Redirect /index.html /community
     
    
     
  13. DBA

    DBA Well-Known Member

    You're also going to want to redirect your threads or like Lee said you're going to have issues with Google.
     
  14. masterchief

    masterchief Well-Known Member

    how is that accomplished????
     
  15. DBA

    DBA Well-Known Member

    You'll need to add a rewrite rule to your .htaccess. I'm not really familiar with it so you'll have to do your own research or somebody else on here can most likely help you out.
     
  16. Lee

    Lee Well-Known Member

    True.

    I was assuming that wasn't the case. ;)
     
  17. masterchief

    masterchief Well-Known Member

    here you go.... enjoy! update your site info

    NOTE: Although you may have placed your entire xenforo site into the /community folder, this htaccess makes it appear to still exist in the ROOT.



    RewriteEngine on

    RewriteCond %{HTTP_HOST} ^(www.)?site.com$

    RewriteCond %{REQUEST_URI} !^/community/

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule ^(.*)$ /community/$1

    RewriteCond %{HTTP_HOST} ^(www.)?site.com$

    RewriteRule ^(/)?$ community/index.php [L]
     
    Jake Bunce likes this.

Share This Page