Here is the .htaccess that is working for me:
Options -MultiViews RewriteEngine On # Redirect Trailing Slashes… RewriteRule ^(.)/$ /$1 [L,R=301] # Handle Front Controller… RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] # php - Laravel get request headers - Stack Overflow RewriteCond %{HTTP:Authorization} . RewriteRule . - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # In case of running InvoiceNinja in a Subdomain like invoiceninja.example.com, # you have to enable the following line: # RewriteBase / # php – BEGIN cPanel-generated handler, do not edit # Set the “ea-php81” package as the default “PHP” programming language. AddHandler application/x-httpd-ea-php81___lsphp .php .php8 .phtml # php – END cPanel-generated handler, do not edit