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

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


my htaccess is here:
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!