if ($url == "index.php") { // This code is made up, I have how it is setup in login.php $url = memberpagethinger.php; }