Hey guys,

I'm tryign to use a .htaccess file to rewrite the url so far its working for the most part.
I have managed to remove .php extension from all files. the problem is though it is now disregarding any index.php file.

for example
www.domain.com/register/

should realize that it is a folder and run the index int hat folder. however it is doing the following:

www.domain.com/register/.php

my htaccess is here:
Code:
RewriteEngine On
RewriteBase /
RewriteRule ^()$ index.php [NC,L]
Rewritecond %{REQUEST_URI} !(^/?.*\..*$) [NC]
RewriteRule (.*)$ $1.php [NC]

ErrorDocument 404 /404
Any help would be greatly appreciated! thanks in advance!