title: Redirect a specific IP address to a special page of my homepage with .htaccess
body: <p>How can I use .htaccess to forward a visitor of a specific IP address to a webpage on my server?</p>
  
  <p>This example causes an infinite loop:</p>
  
  <pre><code>RewriteCond %{REMOTE_ADDR} ^123\.\123\.123\.123$
  RewriteRule ^(.*)$ /specialpage.php [R,L] 
  </code></pre>
  
  <p>I found this on the web but it just does not work:</p>
  
  <pre><code>SetEnvIf REMOTE_ADDR 123.123.123.123 REDIR="redir"
  RewriteCond %{REDIR} redir
  RewriteRule ^(.*)$ /specialpage.php
  </code></pre>
  
  <p>Note: My website consists of .htm, html and .php pages.</p>
  
  <p>Your help would be very much appreciated.</p>