MyBB Community Forums

Full Version: I want the portal login to redirect to index.php instead of portal.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I moved portal.php to the root of my website & renamed it to index.php so that the portal page would display as my index page. Now there's a problem when logging in using the welcome box in the portal page, 'cause when logged it tries to redirect to domain.com/portal.php (& doesn't find it) when it should be redirecting to /index.php.

How do I make the login button of the welcome box in portal redirect to index.php instead of portal.php? Thanks. Big Grin
Never mind; I figured it out.

Had to change the following in the portal.php file (which was renamed to index.php):

redirect("portal.php", $lang->redirect_loggedin);

To

redirect("index.php", $lang->redirect_loggedin);