if (strpos($_SERVER['REQUEST_URI'], '.php') === false && !file_exists(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))) { http_response_code(404); include __DIR__ . '/404.html'; exit; }