Redirect a specific IP address to a special page of my homepage with .htaccess
- by Jim Knopf
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…