This code below won't work on other website hosting provider.
I tried it with two website hosting providers, both have linux hosting with php 4 and 5 version, but it only works on one provider.
<?php
if ($link == "") {$visit = "http://site1.com";}
if ($link == "a") {$visit = "http://site2.com";}
if ($link == "b") {$visit = "http://site3.com";}
header("Location: $visit");
exit;
?>
When I type in this line below in the browser, it works in one hosting provider but it doesn't work on the other provider, please help.
http://site1.com/visit.php?link=a
It won't redirected to http://site2.com but instead it's redirected to http://site1.com