So, I currently have an application running angular, and just developed a page that takes a get request.
Because users can go to this page, I needed to set up .htaccess to redirect to index.html, which I used
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?path=$1 [NC,L,QSA]
But, my API is also on the site (/api.php), and I was considering adding additional php files for organizational purposes
How do I make .php redirect to {{page}}.php and .html or no extension go to index.html?