Home > General > Affiliate Marketing Forum

Link redirection help pls (20)


06-07-2014 03:03 AM #1 shoent (Member)
Link redirection help pls

i have some old traffic sources that have links hardcoded to images using p202 lps, so my links look like http://www.tracker/202/redirect/dl.p...=42339&t202kw=

that main domain is not expired but i no longer have a p202 on there, is there anyway on the backend were i can set thes to maybe a .php file on my server were i can put my cpvlab links, im not trying to track any tokens just trying to get some old ads back live.


06-07-2014 06:13 AM #2 zeno (Administrator)

1. Re-establish the file path, i.e. make a 202/redirect/ folder and add a dl.php file.
2. Change the code in the PHP file to just bounce people to your CPVLab link.

e.g.

Code:
<?php
header('Location: http://cpvlablink.com?subid=zombie_traffic');
?>
Well, hopefully that code at least gets my point across!


06-07-2014 02:05 PM #3 shoent (Member)

that makes sense but how do i get into the back end of p202?


06-07-2014 02:18 PM #4 shoent (Member)

sorry i mean to say i do have them going to a a prosper202 link, but i want to change it to a cpv lab link so somehow i need to go into the backend of prosper202 and change it were it sends that campaign to cpvlab


06-07-2014 02:24 PM #5 Adamw (AMC Alumnus)

You want to transfer all the data from that old p202? Can you still access that tracker's DB and do lookups there?


06-07-2014 03:11 PM #6 shoent (Member)

yes i can access my 202 its still live, the thing is i have all these old campaigns on a traffic source that i havent ran i a while, but the links at the traffic source level pointing to all these 202 links, i want redirected somehow to a php file were i can change over to my cpvlab link.


06-07-2014 03:20 PM #7 Adamw (AMC Alumnus)

I think Zeno's reply is the easiest way to implement it, unless you want to keep that 202 directory active.

Have you tried just changing the lander link inside your 202 setup to a PHP file that extracts the request header parameters and then assigns them to variables that you can add to your CPVLab link?

I'm on my phone now so excuse the brevity but something like:


<?

extract($_REQUEST);

header('Location: http://cpvlablink.com?subid=' . $subid);

?>

I'm not a programmer so there my be a better extraction method but I use this kid of thing for Adwords


06-07-2014 03:33 PM #8 shoent (Member)

ya i just logged into the backend of my 202 and i see the dl.php file so i am going to try out zenos method


06-07-2014 04:18 PM #9 shoent (Member)

ok doing that did not work, i changed the dl.php to what zeno said, still sends to my 202 link


06-08-2014 05:07 AM #10 zeno (Administrator)

If your ads are linking to this:

hxxp://www.tracker.com/202/redirect/dl.php?t202id=42339&t202kw=

And you go to the right server, into the right folder then 202/redirect/ and change the dl.php file to something like I suggested, and it still goes to the wrong place, the problem won't be with the dl.php file - it will be that yo are getting cached redirects or the dl.php file that you changed is not actually where the links are going.

Could it be that you have something caching the redirect e.g. memcache?


06-08-2014 09:27 PM #11 shoent (Member)

That's possible but how can I check , I know I'm in the right server and directory


06-08-2014 10:12 PM #12 Adamw (AMC Alumnus)
Link redirection help pls

Idk how to check memcache or cache stuff... But the quickest solution to me would then be to just change the lander link in your 202 campaign to a PHP file with the code I posted above

At least until you figure out how to find/check the cache stuff or find whatever the root cause is of why those redirects are going to old camps


06-09-2014 12:06 PM #13 caurmen (Administrator)

Change the dl.php file to read

Code:
<h1>YEP, THIS IS THE RIGHT FILE</h1>
Then navigate to one of your old tracker URLs.

If you don't see "YEP, THIS IS THE RIGHT FILE" in big letters, you've got some kind of caching / redirection going on.


06-09-2014 10:15 PM #14 shoent (Member)

ok did that and uploaded, looks like some caching is going on i see a folder with under tracking202/redirect/cached which has a htaaccess file. i removed that didnt change anything.


06-09-2014 10:15 PM #15 shoent (Member)

Quote Originally Posted by buttonedup View Post
Idk how to check memcache or cache stuff... But the quickest solution to me would then be to just change the lander link in your 202 campaign to a PHP file with the code I posted above

At least until you figure out how to find/check the cache stuff or find whatever the root cause is of why those redirects are going to old camps
these are not lander links, they are direct linking campaigns. would i be able to find those in the backend of my 202?


06-09-2014 10:24 PM #16 shoent (Member)

if i could fine were my individiual offers are on my ftp to my p202 links i could set redirects there but i cant find those anywere. for example in 202 we have step 3 which is campaigns, how can i find the location of those on the backend, then i can just setup those to diff. .php redirects.


06-10-2014 09:39 AM #17 zeno (Administrator)

Not sure what you mean by this?

Do you mean you originally had campaigns linking not to affiliate links but to random files on your server for some reason?

I'm still not quite sure why you can't go plug in CPV Lab links in your campaign setup, but maybe p202 generates new links for all these changes = old ones still go to old links?

Perhaps you can use something like PHPmyAdmin to get into the database and change offer links for the specific t202id campaigns in question.


06-10-2014 09:59 AM #18 caurmen (Administrator)

OK, next step - check your access logs immediately after you have loaded the dl.php URL. You can probably find them either at /var/logs/ or directly below your public HTML directory.

Find the most recent entry in there - if this is an inactive server, that should be you clicking on dl.php. The log will show you where the server is fetching that file from.


06-10-2014 03:02 PM #19 shoent (Member)

Quote Originally Posted by zeno View Post
Not sure what you mean by this?

Do you mean you originally had campaigns linking not to affiliate links but to random files on your server for some reason?

I'm still not quite sure why you can't go plug in CPV Lab links in your campaign setup, but maybe p202 generates new links for all these changes = old ones still go to old links?

Perhaps you can use something like PHPmyAdmin to get into the database and change offer links for the specific t202id campaigns in question.
Yes thats what im thinking, if i could find each campaign in some admin page then i can change links there for specific campaigns, but were do i find that. ill check in php admin.


06-10-2014 03:10 PM #20 shoent (Member)

ok i think this will work in php admini can find each campaign id and change it there . testing now.


Home > General > Affiliate Marketing Forum