title: How to redirect all pages to one page on the same server through htaccess?
body: <p>I would like to redirect all pages to one page on the same server.
  In other words I need to redirect:</p>
  
  <p><code>www.example.com</code> (which can be whatever, including for example <code>www.example.com/something</code>)</p>
  
  <p>to </p>
  
  <p><code>www.example.com/maintenance</code></p>
  
  <p>I've tried multiple versions of this:</p>
  
  <pre><code>RewriteCond %{HTTP_COOKIE} !SOME_COOKIE=TRUE; [NC]
  RewriteCond %{REQUEST_URI} !/maintenance [NC]
  RewriteRule ^(.*)$ https://www.example.com/maintenance [L,NC]
  </code></pre>
  
  <p>but i end up with error message in the browser "Too many redirects" or not everything is redirecting...
  Any help would be greatly appropriated.</p>