i need for ppl who come from a domain to be redirected to a certain page
maybe this explenation is better
user comes to my page from DomainBAD he is supposed to be redirected to PAGE.BAD
user comes from any other site user gets the normal page.
Code: Select all
<?php
if ($HTTP_REFERER == "http://domain.BAD/*")
{
header("location:http://domain.com/pageBAD.php");
} //check for referer success
else {
} //continiue..
?>i need it to check the whole domain not just pages.
right now http://www.domain.BAD/page.html get the normal page
i can't keep adding pages that's too much job.
so how can i `redirect all from domain.BAD ??