MyBB Community Forums

Full Version: Use subdirectory as root mybb issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have mybb in a subdirectory. i want to make it as root.
example as www.mysite.com/forum/ as www.mysite.com
i created a . htaccess in root as follows

RewriteCond %{HTTP_HOST} ^(www\.)?mysite\.com
RewriteCond %{REQUEST_URI} !^/forum
Rewriterule ^(.*)$ /forum/$1 [L]


this is working fine except for one issue.

when i access adminCP for the logging page it redirects to correct way.
www.mysite.com/admin

but after loggin it changes into
www.mysite.com/forum/admin

it should be
www.mysite.com/admin
even after the logged in

what could be the issue? please ask anything from me to assist this. i will tel more info
First of all make sure all you're mybb files are in the root directory then check your inc/settings.php and make sure the url are fixed.
i checked the settings.php and URLs are fine. and all the mybb files are in the sub directory.
any one give a help with this?
Home » Board Settings » Site Details
Board URL, Homepage URL & Cookie Domain
Make sure those three have updated correctly to the new landing area.
If they have not and you cannot access ACP then you can make edits in the Database directly for quickness.
(2017-03-06, 03:34 PM)Nasyr Wrote: [ -> ]Home » Board Settings » Site Details
Board URL, Homepage URL & Cookie Domain
Make sure those three have updated correctly to the new landing area.
If they have not and you cannot access ACP then you can make edits in the Database directly for quickness.

those are in with correct details.
http://www.mysite.com

but the issue is when i log in to ACP its goes to
http://www.mysite.com/forum/admin/

which it should be
http://www.mysite.com/admin/
(2017-03-06, 04:21 PM)sltalkz Wrote: [ -> ]-snip

Strange I had a similar issue a while back and this worked for me.
I'll install a new copy and make some changes to force the issue, if I can.
I'll then work to see if I can come up with a work around and respond.
(2017-03-06, 04:24 PM)Nasyr Wrote: [ -> ]
(2017-03-06, 04:21 PM)sltalkz Wrote: [ -> ]-snip

Strange I had a similar issue a while back and this worked for me.
I'll install a new copy and make some changes to force the issue, if I can.
I'll then work to see if I can come up with a work around and respond.

this is strange for me too. i have used the same .htaccess and same setup for mybb 1.8.0 and it worked prefectly. this issue is with my new installation with 1.8.10
(2017-03-07, 04:18 AM)sltalkz Wrote: [ -> ]this is strange for me too. i have used the same .htaccess and same setup for mybb 1.8.0 and it worked prefectly. this issue is with my new installation with 1.8.10

Sorry I have been sidetracked with other work at the moment.
Have you tried a clean install of MyBB on the root?
I'll be home tonight and try to work something up.
(2017-03-08, 11:49 AM)Nasyr Wrote: [ -> ]
(2017-03-07, 04:18 AM)sltalkz Wrote: [ -> ]this is strange for me too. i have used the same .htaccess and same setup for mybb 1.8.0 and it worked prefectly. this issue is with my new installation with 1.8.10

Sorry I have been sidetracked with other work at the moment.
Have you tried a clean install of MyBB on the root?
I'll be home tonight and try to work something up.

its not possible to install mybb in a root. that's why trying to resolve this matter