title: Redirecting IE 7 and IE 11 by useragent nginx config
body: <p>I use nginx webserver and I'm trying to redirect old IE versions. I use MSIE tag for redirecting old version IE browsers ( 6,7,8,9,10). The code is:</p>
  
  <pre><code>if ($http_user_agent ~* '(MSIE 10.0|MSIE 9.0|MSIE 8.0|MSIE 7.0|MSIE 6.0)') {
      return 301 https://$host/some-url;
    }
  </code></pre>
  
  <p>But this also redirects the IE 11 browser. If I remove MSIE 7.0 then it doesn't redirect IE 11. So there is some conflict between both of them.</p>
  
  <p>What I need to achieve is to redirect all older version if IE ( 6, 7, 8, 9 and 10) and allow only IE 11.</p>