How do I create a rewrite rule that only matches a request with no query string?
http://www.mysite.com/index.php
should remap to:
http://www.mysite.com/
BUT
http://www.mysite.com/index.php?page=some_page
Should be left alone.
I'm trying this:
RewriteRule ^/index.php$ http://www.mysite.com/ [R=301,L]
...But it's matching anything that starts with /index.php even though I've explicitly ended the pattern with a dollar sign.
UPDATE:
The only rules before this one are:
RewriteCond %{HTTP_HOST} ^mysite.com [NC]
RewriteRule ^/(.*) http://www.mysite.com/$1 [R=301,L]
The intention is to redirect non www links to the www version.