I am trying to setup a way to rewrite all php files in a subfolder to index.php
What I have been trying until now:
RewriteEngine on
RewriteBase /simple
RewriteRule ^(.+)/$ index.php
It does not work 100%, now it takes the CSS, IMG and all other files too, which it should not, only the PHP files.
- When I go to http://localhost/simple/ it loads correct.
- But when i go to http://localhost/simple/test/ all the CSS and images does not load, cause the directory doesn't exsist.
Hope some can help. Thank you.