I had it working with ASP, but decided to recode it in PHP, and it works, but only if i enter http://www. infront of it, if i jsut enter the address it wont work... but i think it should.. anyways....
Code: Select all
<?php
$x=strtolower($_SERVER["HTTP_HOST"]);
If(strpos($x,'this')>0)
header("Location: /this");
else if(strpos($x,'that')>0)
header("Location: /that");
else if(strpos($x,'what')>0)
header("Location: /what");
else echo "error! ".$x;
?>I've also tried ===true, but htat didn't work either...
Help Please!!