title: Redirect a range of IPs using RewriteCond
body: <p>Currently I am redirecting all users except for the IP 12.345.678.90 using:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_URI} !/maintenance$
  RewriteCond %{REMOTE_HOST} !^12\.345\.678\.90
  RewriteRule $ /maintenance [R=302,L]
  </code></pre>
  
  <p>What syntax would I use to allow a range? In my Allow list I have:</p>
  
  <pre><code>Allow from 123.45.678.90/28
  </code></pre>
  
  <p>Would it work if I just update the REMOTE_HOST line to:</p>
  
  <pre><code>RewriteCond %{REMOTE_HOST} !^12\.345\.678\.90/28
  </code></pre>