I have the following .htaccess file, which should rewrite all non-existent files/folder to index.php. Could someone suggest a way to debug why this wouldn't work? When I go to a non-existent folder I receive a 404 not-found page.
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^.*$ ./index.php
when I visit domain.com/
the index.php file shows properly
the .htaccess file is in the same directory as index.php