I'm trying to access GET parameters from mod_rewrite.
E.g., given this URL: http://myserver.com/foo.png?foo=bar
The following rule does not catch this URL:
RewriteCond %{REQUEST_URI} bar [NC]
While this one does:
RewriteCond %{THE_REQUEST} bar [NC]
Doesn't REQUEST_URI include GET parameters? Is THE_REQUEST the way to go?