I'm creating a single page entry point in PHP. The routes work just fine but static files such as Js & CSS are returning 404. I don't know if this has to do with the htaccess redirect.
Here's the htaccess file's code:
RewriteEngine on
RewriteCond ${REQUEST_URI} !\.(?:css|png|js|jpe?g|gif)$ [NC]
RewriteRule ^([a-zA-Z0-9\-\_\/]*)$ index.php?p=$1
RewriteCond ${REQUEST_FILENAME} !-f
RewriteCond ${REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?p=$1 [L,QSA]