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

Switching Directories

F

Floris

Guest
#2
Before you move, go to options in admin.php and make sure the board information is up to date.

Also, moving doesn't include invisible files sometimes,
.htaccess == invisible

Make sure it's moved as well.

And finally, make certain the internal_data/ and data/ dirs are still chmodded 777
 
#4
Before you move, go to options in admin.php and make sure the board information is up to date.

Also, moving doesn't include invisible files sometimes,
.htaccess == invisible

Make sure it's moved as well.

And finally, make certain the internal_data/ and data/ dirs are still chmodded 777
do you mean change this "require($fileDir . '/library/XenForo/Autoloader.php');"

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. You may need to restart the server for the change to take effect.

http://xenforo.com/community/threads/frequently-asked-questions.5183/#post-180455

Which error are you getting?
I'm trying it again, not sure exactly what error it was. I'm sure I will mess up so I'll post it in just a moment.

404 Not Found

The resource requested could not be found on this server!

Powered By LiteSpeed Web Server
LiteSpeed Technologies is not responsible for administration and contents of this web site!
 

Brogan

XenForo moderator
Staff member
#11
Probably.
I don't use cPanel though for browsing files and directories.

There is an htaccess.txt file in the directory.
Download it, rename it to .htaccess and ftp it back to your web root.

Assuming of course you don't already have an .htaccess file in the root.
In which case you will need to merge the contents.
 

Brogan

XenForo moderator
Staff member
#13
So just disable friendly URLs for now then until you can replace the file.

This is what the base .htaccess file contains:

Code:
#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default

<IfModule mod_rewrite.c>
    RewriteEngine On

    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
    #RewriteBase /xenforo

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data|js|styles|install) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>