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 %{REMO
Add a condition to not rewrite when you're already at specialpage:
RewriteCond %{REMOTE_ADDR} ^123\.\123\.123\.123$
RewriteCond %{REQUEST_URI} !/specialpage.php
RewriteRule ^(.*)$ /specialpage.php [R,L]
Just figured out the solution:
RewriteCond %{REMOTE_ADDR} ^123\.\123\.123\.123$
RewriteCond %{REQUEST_URI} !/specialpage.php
RewriteRule .*\.(htm|html|php)$ /specialpage.php [R,L]
Thank you for your help!