Apsconsus
Registered Member
- Apr 22, 2013
- 90
- 42
Hi guys, apologies if the title doesn't explain anything, hard to describe with limited room.
Basically I want to design a wordpress plugin which will redirect site visitors depending on where they come from.
Right now I'm doing affiliate marketing (just started) and I was reading some guides on getting legit backlinks as well as just sharing your site around to places like facebook or youtube.
The idea would be that, if a site visitor comes to my main page from google, then no redirect happens. Say however if they come from a Youtube link then it will instantly redirect them from my site to the affiliate site. Sure I could just link them to the affiliate site straight away, but then I won't actually be sharing my site around.
To extend on this I'd want to make a plugin that allows people to input a variety of options to change this so that they can target traffic based on whatever website it comes from.
Now I have already done some looking into this, I've found the code that would do the basics, it looks like this:
if (strpos("youtube . com, $_SERVER['HTTP_REFERER']) !== false) {
Header("Location: affiliate site . com");
}
I'd love some help with this, or just general advice. I'd be aiming to make it a free plugin and I think that it could help some people out and at least, within affiliate marketing, improve conversion rates.
Basically I want to design a wordpress plugin which will redirect site visitors depending on where they come from.
Right now I'm doing affiliate marketing (just started) and I was reading some guides on getting legit backlinks as well as just sharing your site around to places like facebook or youtube.
The idea would be that, if a site visitor comes to my main page from google, then no redirect happens. Say however if they come from a Youtube link then it will instantly redirect them from my site to the affiliate site. Sure I could just link them to the affiliate site straight away, but then I won't actually be sharing my site around.
To extend on this I'd want to make a plugin that allows people to input a variety of options to change this so that they can target traffic based on whatever website it comes from.
Now I have already done some looking into this, I've found the code that would do the basics, it looks like this:
if (strpos("youtube . com, $_SERVER['HTTP_REFERER']) !== false) {
Header("Location: affiliate site . com");
}
I'd love some help with this, or just general advice. I'd be aiming to make it a free plugin and I think that it could help some people out and at least, within affiliate marketing, improve conversion rates.