MyBB Community Forums

Full Version: How to make the portal page my homepage?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
OK, the infamous question that's been asked 100 times. How to make the portal page my homepage? 

- When I'm logged out and I go to my site, The Clubhouse,  I see the forum page.
- When I'm logged in and I go to The Clubhouse I see the forum page. 

I want the portal page to show.

- When I log in (from the forum page that's showing at theclubhouse.tk) it logs me in to the forum.
- However, if I log in using the portal page it keeps me on the portal page instead of kicking me to the forums. Which is good, perfect, great!!


I have made an htaccess file with this code just to cover all my bases.
DirectoryIndex portal.php index.php index.html index.htm

If I try changing the Board URL or Homepage URL in the Admin Panel my Portal freaks out. LOL

What I want is - 

When I'm logged OUT and I type theclubhouse.tk I want the portal to show.

I've done this before on other boards. I've been struggling with this for hours, I know I'm overlooking something simple. I can't figure it out.  Sad
Firstly, make your title/subject of the thread relevant to what you’re asking. If not, your thread will probably get closed in the near future. How are you setup? If you have access to the server you can try setting the DirectoryIndex in your server (.conf file) block, ur not already defined.
(2018-06-13, 07:04 AM)Wires Wrote: [ -> ]Firstly, make your title/subject of the thread relevant to what you’re asking. If not, your  thread will probably get closed in the near future. How are you setup? If you have access to the server you can try setting the DirectoryIndex in your server (.conf file) block, ur not already defined.

Noted and changed the title/subject. Thank you for the heads up. I'm pretty sure I don't have access to the server...I'm not sure exactly what that means. I'm not hosting my own site, I have access to my cpanel though.
You can try this... change ''example'' with your site url
Set this to the top/start of your .htaccess file

RewriteRule ^([^&]*)&(.*)$ http://example.com/$1?$2 [L,QSA,R=301]
DirectoryIndex portal.php


Redirect /http://example.com http://example.com/portal.php
(2018-06-13, 07:39 AM)BaggerHD Wrote: [ -> ]You can try this... change ''example'' with your site url
Set this to the top/start of your .htaccess file

RewriteRule ^([^&]*)&(.*)$ http://example.com/$1?$2 [L,QSA,R=301]
DirectoryIndex portal.php


Redirect /http://example.com http://example.com/portal.php

Sorry it didn't work. I even cleared my browser cache and did the f5 thing. I've got something messed up, but everythings working except the portal redirect. Sad
Are you sure your .htaccess file is named .htaccess (with other words, the dot then the name, and not htaccess.txt?
(2018-06-13, 08:59 AM)BaggerHD Wrote: [ -> ]Are you sure your .htaccess file is named .htaccess  (with other words, the dot then the name, and not htaccess.txt?

Are you kidding me?! OMG I get the bonehead award of the year!!!  That was the ticket. I feel really dumb right now!  You rock BaggerHD.

Solved!

(2018-06-13, 08:59 AM)BaggerHD Wrote: [ -> ]Are you sure your .htaccess file is named .htaccess  (with other words, the dot then the name, and not htaccess.txt?

Are you kidding me?! OMG I get the bonehead of the year award!!!  I didn't have the "dot" before htaccess. That was the ticket.
I feel really dumb right now!  You rock BaggerHD.

Solved!