title: htaccess redirect - allow files for construction page
body: <p>I've tried to set up a htaccess redirect for everyone except me. It works fine...except that I have to write an exception for every file that the under construction page wants. This will take me a while and I'm certain there is a proper way to do it, I just cant find it.</p>
  
  <p>I have tried this:</p>
  
  <pre><code>order deny,allow
  deny from all
  allow from 205.97.194.334
  ErrorDocument 403 http://www.domain.com/page.htm
  
  &lt;Files page.htm&gt;
  allow from all
  &lt;/Files&gt;
  </code></pre>
  
  <p>But I get an internal server error</p>
  
  <p>What I have now is this:</p>
  
  <pre><code>RewriteEngine On
  RewriteBase /
  RewriteCond %{REMOTE_HOST} !^127\.0\.0\.1
  
  RewriteCond %{REQUEST_URI} !/mypage\.html$  
  
  RewriteRule .* http://www.domain.com/construct/mypage.html [R=302,L]
  </code></pre>
  
  <p>What can I add in this to allow everything in the /construct/ ?#</p>
  
  <p>Thankyou</p>
  
  <p>P.S. Can anyone tell me why the first attempt didn't work?</p>
  
  <p>EDIT:</p>
  
  <p>Ok I've added this, which allowed the files, however, it is only redirecting when the directory is entered. I.e. domain.com will redirect to the construction page, but domain.com/index.php and anything else will not redirect</p>
  
  <pre><code># Redirect everyone who's not from your IP
  RewriteCond %{REMOTE_ADDR} !00.00.00.00 [NC]
  # Allow real files to be served
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule !index.html$ http://subverb.net/construct/index.html [R=307,L]
  </code></pre>