• 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

masterchief

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

masterchief

Well-known member
#3
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
1) move site - refresh me please, all folders and php files from the root... correct.

NOTE - index.php should stay in root????
 

masterchief

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

Lee

Well-known member
#7
How well indexed is your website by search engines? As this will have a drastic impact on your search position.
 

masterchief

Well-known member
#17
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]