I'm using a friendly url solution that i achieve with the following lines in VirtualHosts
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ script.php?$1
So i can have url's like http://example.com/something/something/else/other/things/
But how could i send a 404 status to the user who requests any url that has a folder starting with /. (it doesn't have to exist)
Example: http://example.com/.svn/this/should/be/404
Example: http://example.com/other/things/.cannot/access/here
Example: http://example.com/this/should/be/.denied
Examples that shouldn't be denied:
Example: http://example.com/t.his/is/ok
I've tried playing with FilesMatch and DirectoryMatch but this is more of a virtual path and i couldn't get it to work. Thank you for your help