gammaman Posted April 25, 2010 Share Posted April 25, 2010 I have an index.php page which of course loads from root by default. I have code there that says if $user and $pass are not set, to redirect to login.php. It does not redirect them. Is this possible to do? How? Link to comment https://forums.phpfreaks.com/topic/199671-redirect-from-indexphp-to-loginphp/ Share on other sites More sharing options...
Pikachu2000 Posted April 25, 2010 Share Posted April 25, 2010 Yes it's possible. Post the relevant code you have and I'm sure someone will be able to help you with it. Link to comment https://forums.phpfreaks.com/topic/199671-redirect-from-indexphp-to-loginphp/#findComment-1047956 Share on other sites More sharing options...
gammaman Posted April 25, 2010 Author Share Posted April 25, 2010 my bad. In my haste I forgot to put the "location:" for the header redirect. Link to comment https://forums.phpfreaks.com/topic/199671-redirect-from-indexphp-to-loginphp/#findComment-1047963 Share on other sites More sharing options...
Pikachu2000 Posted April 25, 2010 Share Posted April 25, 2010 I hate when that happens . . . Glad you found it. Link to comment https://forums.phpfreaks.com/topic/199671-redirect-from-indexphp-to-loginphp/#findComment-1047974 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.