Hi,

I have this in my htaccess, now it this is for removing the .php extension. My subdomain is http://example.domain.com and each time htaccess tries to look for .php and shows up 404, I've trying to find out how to make this work as well add trailing slash http://www.domain.com/example/ when ever going to the subdir.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]