if (THIS_SCRIPT == 'index' AND stripos($_SERVER['REQUEST_URI'], 'index.php')){ header('Location: http://www.example.com/');}