I want to move the forum to "www.mysite.com/forum/" instead of "www.mysite.com/". I moved it, but then I noticed that all the links got messed up. How would I move it and keep the links working?
For example:
Right now, the forum is located in
www.mysite.com/. I want to move the forum to
www.mysite.com/forum/ without wiping it.
Make sure all your MyBB files and folders are in the new directory
Go to your admin panel > General Configuration > Type you new board url and cookie path
If you can't access the admin panel, go to your FTP Client
Find setting.php in the inc folder
Find:
$settings['bburl'] = "http://mysite.com/";
Replace it with:
$settings['bburl'] = "http://mysite.com/forum";
Find:
$settings['cookiepath'] = "/";
Replace it with:
$settings['cookiepath'] = "/forum/";
This is what I've done in the past, and it worked for me...
move it back to
www.mysite.com
then go into the ACP -> Configuration -> General Configuration
Change
Board URL to
www.mysite.com/forum
Change
Homepage URL to
www.mysite.com
Change
Cookie Domain to
.mysite.com
Change
Cookie Path to
/forum/
Once you submit it, don't click on anything else in the ACP.
Then go to your file system, move the folder.
Then enter the new URL to your site in your browser:
http://www.mysite.com/forum
It's worked in the past for me. Now if you have problems where it keeps logging you out, then it's just a cookie problem, and you'll just have to adjust the cookies.
No problem! If you need still help with this, please reply back.