Hi guys - I am running through a new self-host installation of 2.6.8 as Bitnami have discontinued their Invoice Ninja stacks.
I have migrated my MySQL database and .env file. Mod-rewrite is enabled for Apache2.4 and I have set my document root to /var/www/ninja/public and set the appropriate permissions.
However when browsing to http://IP address I get a 404 error - If I specify /index.php in the URL it works fine. How do I ensure I don’t have to specify index.php?
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]
# In case of running InvoiceNinja in a Subdomain like invoiceninja.example.com,
# you have to enable the following line:
# RewriteBase /
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]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L]
# In case of running InvoiceNinja in a Subdomain like invoiceninja.example.com,
# you have to enable the following line:
# RewriteBase /
</IfModule>
Same issue, unless I specify index.php in the URL.