MyBB Community Forums

Full Version: portal.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I make the portal.php of my theme the home page?
Create a .htaccess file via Notepad and put this code in:
DirectoryIndex portal.php index.php

Then upload that to your forum's root folder.

Test it out.
(2010-07-29, 02:13 AM)lan7 Wrote: [ -> ]Create a .htaccess file via Notepad and put this code in:
DirectoryIndex portal.php index.php

Then upload that to your forum's root folder.

Test it out.

Ok sorry for being so full of questions... I open notepad type in the code and save it as .htaccess? Then upload that to my forums root?
Yes that's correct.
(2010-07-29, 02:26 AM)lan7 Wrote: [ -> ]Yes that's correct.
K did that but no change Sad
(2010-07-29, 02:28 AM)cashfreebies Wrote: [ -> ]
(2010-07-29, 02:26 AM)lan7 Wrote: [ -> ]Yes that's correct.
K did that but no change Sad
I still have some css files to upload that might be the prob...where do i need to upload them?
This is how it should work, if you go to your domain now, let's say:
http://mywebsite.com

It'll automatically route to portal.php

If you want the banner to re-route to that, it'd require modifying the templates.

I suggest putting in a "Home" and a "Forum" button on your top navigation.

Forum button pointing to index.php
And "Home" button pointing to portal.php

Or you can just call it "Portal" too instead of "Home".

Anyway, that would require modifying the Header template.
Why would you make another .htaccess if you already have one there by default?

Anyway, add DirectoryIndex portal.php in the .htaccess. That way, mysite.com will show the portal rather than the board home. Then add a link in the nav to the forum, obviously. Smile