title: Check to see if a key exists in a query string - htaccess
body: <p>my url has query string(s) as follows:</p>
  
  <pre><code>?v=11&amp;icid=someid&amp;near=far
  OR
  ?icid=some&amp;v=11&amp;near=far
  OR
  ?icid=some&amp;near=far&amp;v=11
  OR
  ?v=11
  OR
  There may be more but "v" exists
  </code></pre>
  
  <p>in htaccess, how do I do the following please?</p>
  
  <p>if key "v" exists
  and
  the value is not [1-11]
  redirect to my site</p>
  
  <p>so far I've got the following:</p>
  
  <p>sample url: <a href="http://www.mysite.com/2010/01/17/breaking-news/" rel="nofollow">http://www.mysite.com/2010/01/17/breaking-news/</a>? (one of the above QS's)</p>
  
  <p>RewriteCond %{QUERY_STRING} v <br>
  RewriteCond %{QUERY_STRING} v=([^1-11]+) <br>
  RewriteRule ([1000-9999]+)/([^/]+)/([^/]+)/([^/]+)/?([0-99]+)?$ http: // %{HTTP_HOST}/? [R,L]</p>
  
  <p>Any help on this is much appreciated.
  <br><br>
  Thanks,<br>
  L<br></p>