Post4VPS Forum | Free VPS Provider
Use subdirectory as root mybb issue - Printable Version

+- Post4VPS Forum | Free VPS Provider (https://post4vps.com)
+-- Forum: Web Technology & Internet (https://post4vps.com/Forum-Web-Technology-Internet)
+--- Forum: Web Design & Projects (https://post4vps.com/Forum-Web-Design-Projects)
+--- Thread: Use subdirectory as root mybb issue (/Thread-Use-subdirectory-as-root-mybb-issue)



Use subdirectory as root mybb issue - Lucifer - 03-03-2017

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

Code:
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


RE: Use subdirectory as root mybb issue - RickB - 03-03-2017

I just guess MyBB redirects you. Do other directories work?


RE: Use subdirectory as root mybb issue - Lucifer - 03-04-2017

so far other directories working fine. can you tell me any specific to check?