i have an index.php page that contains the following code :
Code: Select all
switch( $show )
{
case "login"; require( "login.php" ); break;
case "logout"; require( "logout.php" ); break;
case "home"; require( "home.php" ); break;
}If i set a redirection inside index.php, this also affects all my pages. Is there a way i can make this work so it redirects to the login page when a user visits http://mywebsite.com/ and not touch all the other pages ?
thanks
--tarja