RewriteEngine On

# Evitar reescribir rutas reales
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Redirige todo a /public/
RewriteRule ^(.*)$ public/$1 [L]

# Soporte PHP 8.2 por cPanel
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
</IfModule>
