Yet Another Redirect Thread

Status
Not open for further replies.

darkpedro

New member
Nov 2, 2006
109
1
0
I've been trying some redirect stuff lately, mostly sending adultish :rasta:traffic through a legit site. This is because my site doesn't pass the stringent guildelines set by most aff companies. But, there are a lot of offers that fit my market.

So, I've been trying a php redirect like this in the header.
Code:
<?
$referrer = $_SERVER['HTTP_REFERER'];
if (preg_match("/refersite.com/",$referrer)) {
      header('Location: http://www.affsite.com/offer');
};
?>

I've decided to install wordpress onto my legit site to speed up the process, but I'm not sure how to make it work since this code has to be in the header.

So, my question is, is there any way to use this type (or any type) of redirect inside a single wp page to redirect to a specific offer? For example, site1 offer -> legit site offer page -> redirect to aff offer. But if you got to legit site offer page, you don't get redirected.

Let me know if I can clarify.
 


I've been trying some redirect stuff lately, mostly sending adultish :rasta:traffic through a legit site. This is because my site doesn't pass the stringent guildelines set by most aff companies. But, there are a lot of offers that fit my market.

So, I've been trying a php redirect like this in the header.
Code:
<?
$referrer = $_SERVER['HTTP_REFERER'];
if (preg_match("/refersite.com/",$referrer)) {
      header('Location: http://www.affsite.com/offer');
};
?>

I've decided to install wordpress onto my legit site to speed up the process, but I'm not sure how to make it work since this code has to be in the header.

So, my question is, is there any way to use this type (or any type) of redirect inside a single wp page to redirect to a specific offer? For example, site1 offer -> legit site offer page -> redirect to aff offer. But if you got to legit site offer page, you don't get redirected.

Let me know if I can clarify.

You could just put your PHP redirect code into your WP template

M
 
Status
Not open for further replies.