I've got a primary page, index.php and I must redirect all URI to index.php despite the presence of the file/directory within the server. Essentially, I must give priority to index.php over htaccess.

Presently, I've the next:

...
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
...

Leaving comments the foremost and second line (within the excerpt above) throws an "Internal Server Error" which appears reasonable since that produces a circular logic however i am blind holiday to a implementations and am essentially stuck. I'd be thankful if a person could shed some light.

Thanks.

 RewriteCond %{REQUEST_URI} !index\.php
 RewriteRule ^(.*)$ index.php/$1 [L,QSA]