<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    # Serve public assets from the project root without exposing Laravel internals.
    RewriteRule ^(assets|storage|uploads)/(.*)$ public/$1/$2 [L]
    RewriteRule ^favicon\.ico$ public/$1 [L]
    RewriteRule ^fix_(permissions|vendor_permissions)\.php$ - [L]

    RewriteRule ^index\.php$ - [L]
    RewriteRule ^.*$ index.php [L]
</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
