Do you have a question? Post it now! No Registration Necessary. Now with pictures!
March 21, 2007, 2:49 am
rate this thread
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 http://www.domain.com/name (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.