Redirect users without mod_rewrite to base directory

First pull request, please excuse any mistakes.

Currently, if a user does not have mod_rewrite installed or enabled, it simply prints 'index.php' 

This should fix that for new installs, haven't tested with upgrades.