http://localhost/any -> http://localhost/any.php
but now the problem is i'm unable to access any directory, since http://localhost/directory will mod to http://localhost/directory.php.
any idea?

RewriteRule ^([-0-9a-z]+)/?$ $1.php [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([-0-9a-z]+)/?$ $1.php [NC,L]
Return to Coding and Programming
Users browsing this forum: No registered users and 1 guest