mod_rewrite help needed

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I have a problem with my htaccess file. Maybe someone can help.

I have a number of files and folders with the same name:


and I want the URL (without file
extension!) to point to the PHP-file, not to the directory.

I am trying

RewriteCond % !-f
RewriteCond % !-d
RewriteRule ^(.*)$ $1.php [L]

but get a 500 server error.
Renaming the folders or files is not an option.

Any ideas? Thank you.

Site Timeline