if ($_SERVER['PHP_SELF'] !== '/index.php') {

}