<?php // Redirect instantly to another URL header("Location: " . (rtrim(getenv('APP_BASE_URL') ?: '', '/') ?: '/')); exit; // Make sure to stop execution after redirect ?>