<IfModule mod_rewrite.c>
    RewriteEngine On
    
    # Pass Authorization Header to PHP
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Only route API requests to the public/index.php router
    # This allows direct access to the views/ and assets/ folders for the web interface
    RewriteRule ^api/(.*)$ public/index.php [QSA,L]
</IfModule>
Options -Indexes

# 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
