Forum Moderators: phranque
/test.php
/anotherdirectory/index.php
but server the index page when it is asked for itself.
I have:
(.*)(^index\.php) /index.php
I get
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
when I ask for index.php and
page not found when I ask for test.php.
Any help? I am not very good at regex.
# Rewrite all php pages except index.php to index.php
RewriteCond %{REQUEST_URI} !^/index\.php$
RewriteRule ^[^.]+\.php$ /index.php [L]
Jim