<?php
header("Status: 301 Moved Permanently", false, 301);
$ip = $_SERVER["REMOTE_ADDR"];
echo $ip;
$needle="192.168.14";
if (strpos($ip,$needle) !== false) {
header("Location: http://aaaa/");
}
else
header("Location: http://bbbbbb/");
//
exit();
?>
header("Status: 301 Moved Permanently", false, 301);
$ip = $_SERVER["REMOTE_ADDR"];
echo $ip;
$needle="192.168.14";
if (strpos($ip,$needle) !== false) {
header("Location: http://aaaa/");
}
else
header("Location: http://bbbbbb/");
//
exit();
?>
Aucun commentaire:
Enregistrer un commentaire