I wan’t to redirect everything to index.php exepept if a file or directory exists. I try’d a few ways from Google, but that really slowed the website down and don’t really work so i amused that i got things wrong.
So URL like this:
`site.com/Projects/S01/ -> site.com/Projects/S01/index.php (original)`
`site.com/Projects/GE5/ -> site.com/Projects/GE5/index.php (original)`
`site.com/Projects/ -> site.com/index.php`
`site.com/Websites/ -> site.com/index.php`
`sits.com/Testifcate/ -> site.com/index.php`
Whats the fastest way of doing this? All the methods I try’d are really slow.
Thanks you. Files such as main.css are really slow at loading also, maybe those files don’t go true the check to make it faster? What the best way to go about this?
This is my rewrite rule that does just that: