I use Shephertz's very basic URL routing mechanism to route my page. However I have come across a problem for file extensions.
If I load www.example.com/register
I get index.php
, but keep the URL.
However, if I load up www.example.com/register.php
, it doesn't send me to index.php
, but keeps the URL. How come?
This is my .htaccess
file, which works for non-extensions:
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
How can I combine these two? I want both of these to be marked blue...