$url = str_replace('/index.php', '/', $_SERVER['REQUEST_URI']); header('Location: '. $url, true,302); exit();