I want to redirect all pages to index.php and serve all content from the index.php.
I currently have this in my .htaccess:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /p/index.php [L,QSA]
When I go to example.com/p/xxxx (not existing php file) it goes to /p/index.php exactly as I would like it.
However, if I go to example.com/p/home it serves the /p/home.php file and I want it to go to /p/index.php.
The .htaccess file is in the /p/ folder.
How can I fix this?