title: .htaccess mod_rewrite IP-based redirect: how to redirect all traffic to a specific subdirectory, except my IP?
body: <p>I want my visitors to have access only to a specific part of my website (blog). If they try to access other areas of the website, I'd like them redirected to the blog section.</p>
  
  <p>I also want this to apply to everyone except to my IP address.</p>
  
  <p>So the structure is as follows:</p>
  
  <p><code>mysite.com/blog  // visitor access allowed</code></p>
  
  <pre><code>mysite.com        // redirect to mysite.com/blog
  
  mysite.com/forum  // redirect to mysite.com/blog
  
  mysite.com/tools  // redirect to mysite.com/blog
  
  etc...
  </code></pre>
  
  <p>Do you have a suggestion on how to do this via .htaccess mod_rewrite?</p>