I want to redirect every request with a "path" after the "index.php" to my domain or, if it's not possible, directly to the index.php, but I don't know the RewriteRule/RewriteCond for this case.
For example, I want to redirect www.example.com/index.php/test, www.example.com/index.php/test/hello.php, www.example.com/index.php/test/admin/interface etc. to www.example.com (or www.example.com/index.php).
I don't want to redirect any other file or directory (like www.example.com/admin or www.example.com/interface/admin.php) to my index.php, just any "path" that is given after "/index.php" in the URL. Of course, I also don't want to redirect www.example.com/index.php or www.example.com to itself ending in a redirect loop.
Does anybody know a solution (RewriteRule/RewriteCond) for this?