Hi Richard,
Sometime back (although I can't find the threads), you helped me to come up with the following:
# Remove extensions for security through obscurity
###################################
RewriteRule ^(/.+)\.(php|asp|html|jsp|htm|ece|aspx)$ $1/ [R=301,L]
# Redirect /name to /name/ if a PHP file or directory exists
###################################
RewriteCond %{DOCUMENT_ROOT}$1.php -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{SCRIPT_FILENAME} -d
RewriteRule ^(/.*[^/])$ $1/ [R=301,L]
# Rewrite /name and /name/ to /name.php if a PHP file exists and a directory does not.
###################################
RewriteCond %{DOCUMENT_ROOT}$1.php -f
RewriteCond %{DOCUMENT_ROOT}%{SCRIPT_FILENAME} !-d
RewriteRule ^(/.*[^/])/$ $1.php [QSA,L]
This all worked when it was placed in the httpd.conf file, but due to a restriction I've had to put it into an htaccess file - where it doesn't work anymore.
Please help me... what needs to be changed to make it work via htaccess?
Thanks