Is this PHP Redirect Possible?

Is it possible to redirect incoming traffic to a top-level domain to another domain based on the full, exact Referring URL?

For example, let’s say I bought http://www.redirectdomain.com. and I’m sending a bunch of traffic to this top-level domain. (index.php)

Can incoming visits from http://samplesite.com/myarticle-rocks.html be redirected to http://amazon.com/?tag=keyword?

While Other incoming visits from http://suckysite.com/myarticle-sucks.html redirect to http://buy.com/?ref=suck?

Hope that’s clear… :slight_smile:

Yes.