Functional Testing Routes

I’ve got my Selenium tests up and running but i’m running into one issue. Basically it boils down to - is it possible to have some conditional rewrite rules? Specifically, I have my routes set up to be SEO friendly, but when I run tests (localhost/index-test.php?r=some/route) I don’t want my routes rewritten. As it stands, any route that I tack onto the end of localhost/index-test.php is sending me to the site index, which I’m assuming is a result of my rewrite rules.

Is there any way to set up an environment where requests to index.php get rewritten but requests to index-test.php don’t?