I'm using this code to "remove" .php extensions:
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] So I can go to mysite.com/about instead of mysite.com/about.php.
It works fine but when I have a directory like:
mysite.com/admin (inside there I have a index.php) it throws a Forbidden 403 error. How can I fix this?
Btw, if I go to mysite.com/admin/index it works.