MyBB Community Forums

Full Version: redirect my forum domain to a subdirectory
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i install mybb in sub folder example:

example.com/forum/
but i want to that when a user write my forum url like:

example.com

it auto reach to forum sub folder mean in forum

help me
Go to inc/settings.php then do the following.

Search for

$settings['bburl'] = "http://www.website.domain/";

Change it to

$settings['bburl'] = "http://www.website.domain/forum";

Again search for (Same file)

$settings['cookiedomain'] = ".website.domain";

Change it to

$settings['cookiedomain'] = ".website.domain/forum";

Then go your admin control panel>Configuration>Setting>General Configuration and change your site url to website.domain/forum and cookie domain to .website.domain/forum
not work plz post htaccess code
see this for guidance
(2013-07-14, 04:18 AM).m. Wrote: [ -> ]see this for guidance

i try this but not working
Redirect /index.html http://www.website.com/forum
Hi,

I do this with a redirect using Cpanel redirect. For example I redirect all site request to the sub folder I have MyBB in and a a file, in my case a page manager file. So all request for 'www.yoursite.com' are redirected to the sub folder and file. Works good for me.

- Rich -
i redirect my site with control panel thanx any way