<?php
$path=parse_url($_SERVER['REQUEST_URI'],PHP_URL_PATH)?:'/';
if(str_starts_with($path,'/storage/')||preg_match('~/(?:config|bootstrap)\.php$~',$path)){http_response_code(403);echo 'Acceso denegado';return true;}
$file=__DIR__.rawurldecode($path);
if($path!=='/'&&is_file($file))return false;
if($path==='/'||$path==='/index.html')return false;
http_response_code(404);echo 'No encontrado';return true;
