Forum Moderators: coopster

Message Too Old, No Replies

PHP redirect and parse URL strings

         

sun818

11:29 pm on Dec 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi, I am using a service to measure the conversion rate for pay-per-click (PPC) campaigns and actual sales. This requires that I point to theirdomain.com. Theirdomain.com records the click and redirects back to mydomain.com. But now, all the PPC listings show theirdomain.com instead of mydomain.com. I want to still show mydomain.com and still use the service.

question:

How do I write a PHP script that will run on mydomain.com and will parse the URL after the first?. The script would then redirect to theirdomain.com including the parsed URL info.

So,

[mydomain.com...]

Redirects to:

[theirdomain.com...]

[/i]the bold part is the parsed URL that is passed from the original URL[/i]

c3oc3o

1:46 am on Dec 5, 2002 (gmt 0)

10+ Year Member



<?
Header('Location: [theirdomain.com...]
?>

[PS: There should be a way to disable auto-linking...]

sun818

1:18 am on Dec 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks c3oc3o! Now that I think about about it, it would be cool if could parse the query values and plug them into my redirect URL where I want.

So, how would I retrieve the values in bold as variables that I can plug into the
Header('Location: part:

[mydomain.com...]