How to redirect users to the Homepage

18.6.1. How to redirect users to the Homepage

Are you looking for a way to redirect a user to Home rather than Your Account when they login? Would you rather prefer them to go to Your Account only when they choose to and be automatically redirected to Home when they login? There is a simple way to accomplish this (see How to redirect users to the Homepage and Redirect login to home):

Find the following lines in function login() in the modules/Your_Account/index.php:

Header("Location: modules.php?name=Your_Account&op=userinfo&bypass=1&username=$username");

Change it to this:

Header("Location: index.php"); 

See Section 18.2.1 for the inverse procedure - but don't try both.

Help us make a better PHP-Nuke HOWTO!

Want to contribute to this HOWTO? Have a suggestion or a solution to a problem that was not treated here? Post your comments on my PHP-Nuke Forum!

Chris Karakas, Maintainer PHP-Nuke HOWTO


Site Info

Last SeenLast Seen
  • neralex
  • papamike
Server TrafficServer Traffic
  • Total: 380,923,406
  • Today: 10,943
Server InfoServer Info
  • Apr 26, 2019
  • 05:40 am CEST