PHP Redirect Array Help
-
<?php $ip_address = $_SERVER['REMOTE_ADDR']; if ($ip_address == '108.7.3.52') header("Location: http://myurl.com/index.html"); else header("Location: http://myurl.com/page2.html"); ?>Hey guys,
I am trying to get the code to work for more than 1 IP and I don’t know how to do it. Can anybody help me out with this? Thanks in advance.
D
The topic ‘PHP Redirect Array Help’ is closed to new replies.