Forum Moderators: phranque
I'm going to play a prank of my friend and I need your help. The idea is to redirect the entire domain to a single file, which I think I've got covered with the following .htaccess:
order deny,allow
deny from all
allow from 123.123.123.123
ErrorDocument 403 /hacked.html
<Files hacked.html>
allow from all
</Files>
So it should redirect www.blah.com as well as www.blah.com/blah to www.blah.com/hacked.html.
Right so question one is how do I add a second ip to the rule so someone else can view the site normally with me? Would it be allow from 123.123.123.123¦1.1.1.1 ?
And secondly how would I redirect just a single IP (or IP range) to the hacked.html and have everybody else view the site as normal?
Thanks in advance :)