Fixes #6156 Redirect /index.php/.whatever?... to /index.php?...

/index.php/.html?... URLs can be interpreted by old browsers using the extension instead of the Content-Type header. This redirection should prevent that.