// Add this at the very top of your index.php file (before any HTML output) $request_uri = $_SERVER['REQUEST_URI']; // Check if the request is for the root of holovita if ($request_uri === '/holovita' || $request_uri === '/holovita/') { // Redirect to index.php header("Location: /holovita/index.php"); exit(); } $cookie_name = "IP: "; $cookie_value = $_SERVER['REMOTE_ADDR']; setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/"); // 86400 = 1 day ?>