Home > Questions and Answers > Tracking Questions

How to redirect to prosper202 link from subpage? (2)


07-24-2012 10:29 AM #1 Crispee (Member)
How to redirect to prosper202 link from subpage?

hi, would like to know how to redirect from a subpage to my prosper202 offer link?

I see websites with links like this then it redirects to the offer.

Code:
website.com/subpage.php?s1=1231354
this might be really simple but I've tried searching and didn't find anything..

Thanks


07-24-2012 11:24 AM #2 mehdi (Member)

Hi there phantom,

You can use the header php function to do so , like this (code to insert in top of subpage.php) :

<?php
header('location:http://yourtrackingdomain.com/tracking202/redirect/dl.php?t202id='.$_GET["s1"].'&t202kw=');
?>

if you wanna use the subpage.php to put a cookie or write something before it redirects, you will need to do something like this :

<?php

ob_start();

yourfunctionthatputsacookie();

header('location:http://yourtrackingdomain.com/tracking202/redirect/dl.php?t202id='.$_GET["s1"].'&t202kw=');

ob_end_flush();


?>


There you go mate ! PM me if you need any help with this, it's really simple


Mehdi


Home > Questions and Answers > Tracking Questions