MyBB Community Forums

Full Version: How to view portal on domain root while MyBB is installed on a subdirectory
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I can't get it to work.
I may use this sometime Smile

Nginx users can use this:

rewrite ^/$ /forum/portal.php last;
I probably have things differently than everyone else, but I have /var/www/bb for my forum, /var/www/code for my other forum, /var/www/img for my image hosting site, /var/www/ for my main stuff. In my .htaccess in /var/www/ all I did was

DirectoryIndex bb/portal.php index.php
(2010-02-19, 03:46 PM)KDulcimer Wrote: [ -> ]Thanks much! However, when I login via the header, it redirects me to member.php when I need to go to forum/member.php.

I am using ProPortal.

I'm getting the same error. =/

(2010-02-24, 05:47 PM)KDulcimer Wrote: [ -> ]Fixed by symlinking forum/member.php to member.php

And I don't understand what this means to fix it =/
Somebody please help? I can't login from the portal =/
Use this instead,
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^$ board/portal.php [L,QSA]
    RewriteRule ^$ board/member.php [L,QSA]
</IfModule>
That will fix all member.php issues.
Look like some people have problem with the method?

does anyone has a method that is working perfectly?
i using example.com/forum for my forum and want the portal to be on example.com/
(2010-11-10, 03:45 AM)truejeff Wrote: [ -> ]Look like some people have problem with the method?

does anyone has a method that is working perfectly?
i using example.com/forum for my forum and want the portal to be on example.com/

yes , just edit the " .htaccess " change it using you domain name

and put it on the root derictory not in the forum derictory (see the pic plz )

[attachment=20475]


Good luck Smile



hi, i tried using the following 3 methods on a test forum, all of them give me the same result. The redirection works fine, but the images are not redirected. i got the images refering to example.com/image while they are suppose to refer to example.com/forum/image.

All the other links look fine. I'll like to know what is this .htaccess file and how it work?

Can some kind soul enlighten me?

DirectoryIndex bb/portal.php index.php

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^$ board/portal.php [L,QSA]
    RewriteRule ^$ board/member.php [L,QSA]
</IfModule>

(2010-11-10, 10:58 AM)haytoch Wrote: [ -> ]
yes , just edit the " .htaccess " change it using you domain name
and put it on the root derictory not in the forum derictory (see the pic plz )

" .htaccess.txt " to edit attached below change the name to .htaccess .

Online Démo : www.bahi-education.com
Good luck Smile

(2010-11-10, 11:44 AM)truejeff Wrote: [ -> ]hi, i tried using the following 3 methods on a test forum, all of them give me the same result. The redirection works fine, but the images are not redirected. i got the images refering to example.com/image while they are suppose to refer to example.com/forum/image.

All the other links look fine. I'll like to know what is this .htaccess file and how it work?

Can some kind soul enlighten me?

DirectoryIndex bb/portal.php index.php

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^$ board/portal.php [L,QSA]
    RewriteRule ^$ board/member.php [L,QSA]
</IfModule>

(2010-11-10, 10:58 AM)haytoch Wrote: [ -> ]
yes , just edit the " .htaccess " change it using you domain name
and put it on the root derictory not in the forum derictory (see the pic plz )



Good luck Smile

The first one it's true i test it befor and the images don't show .

The 3th one works online for me fine " exemple.com/forum .(i never test it on local :s )
"Are you sur you put the file in the right palace ?"
if you have online url we can help
i have the original .htaccess in /forum folder
and i added the .htaccess downloaded into the root folder (i change the yourdomain.com to my root folder url)
which mean now i have 2 .htaccess files, is that correct?

*I've pm-ed you my site.*
Pages: 1 2 3