# Ativar o motor de reescrita de URLs
RewriteEngine On

# Garantir que o pedido não já contenha /public/
RewriteCond %{REQUEST_URI} !^/public/

# Redirecionar todas as requisições para a pasta public
RewriteRule ^(.*)$ /public/$1 [L]

# Configurar o manipulador PHP padrão
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php82” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
