MyBB Community Forums
.htaccess: How do I show myforum.com/forum as myforum.com - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: .htaccess: How do I show myforum.com/forum as myforum.com (/thread-185695.html)



.htaccess: How do I show myforum.com/forum as myforum.com - macdonjo - 10-27-2015

I have my forum files in a folder, but I want them to be shown as root.

Between apache settings and MyBB settings, what do I need to do?


RE: .htaccess: How do I show myforum.com/forum as myforum.com - Ben - 10-27-2015

Move all files into the root. Then change board url and cookie settings in ./inc/settings.php. Then login to the ACP and then again change the board URL and cookie settings.


RE: .htaccess: How do I show myforum.com/forum as myforum.com - Ashley1 - 10-27-2015

You also have to check RewriteBase in the .htaccess. If the folder is specified there, then you need to remove it from the path.


RE: .htaccess: How do I show myforum.com/forum as myforum.com - macdonjo - 10-27-2015

(10-27-2015, 08:59 AM)Ben C Wrote: Move all files into the root. Then change board url and cookie settings in ./inc/settings.php. Then login to the ACP and then again change the board URL and cookie settings.

No, I'm not moving it to root. I have 25 addon domains. Why would I want the MyBB forum files mixed in with with my addon domains?


RE: .htaccess: How do I show myforum.com/forum as myforum.com - Ben - 10-27-2015

You'll need to add a rewrite rule into the .htaccess file.