Click to See Complete Forum and Search --> : Help with .htaccess not showing index.php


mokamedia
03-30-2009, 04:18 PM
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:

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!