title: Temporary redirect to maintenance page
body: <p>I am trying to write a rule to redirect all URLs to a temporary page so that some site updation could be done, but it ends up in an infinite loop. </p>
  
  <pre><code>  RewriteCond %{HTTP_HOST} ^(.*)mysite\.com$
    RewriteCond %{REQUEST_URI} !^(.*)temp$
    RewriteRule ^(.*)$ http://www.mysite.com/temp [R=307,L]
  </code></pre>
  
  <p>How to check if it's a temp page?</p>