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