I want to have pretty urls so http://www.domain.com/foo will return http://www.domain.com/foo.php
The issue is that there is a directory that has the same name. I ha
MultiViews could cause this behavior. Try to disable it.
You need to use the whole path:
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}.php" -f
REQUEST_FILENAME is just the full path inside DocumenRoot