MyBB Community Forums

Full Version: cant set portal.php as home page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to get it so when people visit my root website, they will load portal.php instead of index.php

the reason is, index.php loads the forums whereas portal.php is more like a homepage with a lot of different information (forums, recent stuff, etc.). I would like people to land on the portal.php content, and then choose to visit the forums by clicking the forums tab. "Home" tab links to portal.php and "Forums" tab links to index.php; as such, it makes sense that home tab content be loaded first. 

I have tried to set /portal.php as the board URL in the 'Site Details' settings (admin panel), but when I do this, the entire layout/styling of my site goes haywire and is completely broken. Im not sure how I can: 

get visitors to land on the content of portal.php (i dont actually care what the php is called), i.e. the "Home" tab
make forums so they are only displayed with a direct link, or by landing on main page and choosing "Forums" tab

my site is here:
https://abstractbhop.com

(i want to keep Shoutbox on forums tab, and Servers Panel on portal/home/landing)
set portal.php as home page

add this code

DirectoryIndex portal.php


or 

DirectoryIndex portal.php index.php index.html index.htm

to abstractbhop.com/.htaccess

like this threads

https://community.mybb.com/thread-126607.html

https://community.mybb.com/post-1131856.html
(2017-11-15, 08:33 AM)ziuma Wrote: [ -> ]set portal.php as home page

add this code

DirectoryIndex portal.php


or 

DirectoryIndex portal.php index.php index.html index.htm

to abstractbhop.com/.htaccess

like this threads

https://community.mybb.com/thread-126607.html

https://community.mybb.com/post-1131856.html

What if the user is using nginx and php-fpm?
(2017-11-15, 07:05 PM)Lunorian Wrote: [ -> ]What if the user is using nginx and php-fpm?

i don't know, maybe you can visit this tutorial
https://docs.mybb.com/1.8/administration...ndly-URLs/
(2017-11-15, 08:33 AM)ziuma Wrote: [ -> ]set portal.php as home page

add this code

DirectoryIndex portal.php


or 

DirectoryIndex portal.php index.php index.html index.htm

to abstractbhop.com/.htaccess

like this threads

https://community.mybb.com/thread-126607.html

https://community.mybb.com/post-1131856.html


thank you that worked perfectly. (i used the second option)

I wonder.. is there an easy way of making it so that 'domain/forums' or 'domain/forums.php' will take you to the forums? I know the forums are actually located at 'domain/index.php' 

this isnt imperative but would be nice.. and isnt worth a lot of trouble
(2017-11-16, 06:27 AM)michaelrw10 Wrote: [ -> ]I wonder.. is there an easy way of making it so that 'domain/forums' or 'domain/forums.php' will take you to the forums? I know the forums are actually located at 'domain/index.php' 

in this threads, how to change portal.php to home.php
same as index.php to forum.php

https://community.mybb.com/thread-128457.html
#4

BACKUP BEFORE TRY THIS TUTORIAL