Jump to content

This redirection php script is not working in php 5.2


linux1880

Recommended Posts

hi guys this srcipt is not redirecting url rewuest based on LAN address, do I need to add any more flag ?

 

   <?php

if ($_SERVER['REMOTE_ADDR'] == '172.16.0.0') {
header ('location: http://172.16.x.x:XXXX');
exit();
} else {
header ('location: http://128.10.21.2:XXXX');
}

?> 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.