![]() |
Hey PHP Experts! Anyone have a php 301 or 302 redirect script that passes subids?
I know this is probably one of the most basic PHP scripts in the world, but I know jack shit about coding php.
Does anyone have the code to do a basic redirect page that can take the keyword/subid from the url and pass it on to the sponsor page? For example: http://www.landingpage.com/index.php?subid=GFY 301 or 302 redirects Then passes the subid GFY on to http://www.magacashbucks.com/promo.php?subid=GFY. |
|
That's great Mega, I will check that out and learn how to do other stuff like make a double refresh to hide the referring page.
But, I need this script right now. I don't have a ton of time for a tutorial unfortunately. |
Quote:
|
I did.
<?php $id = $_GET['id']; $referer = $_SERVER['HTTP_REFERER']; if($referer == "") { header("Location: http://www.yoursponsorlnk.com/index.php?sub=$id"); } ?> Just in case anyone does a search and comes across this page while looking for a code like it here it is. Enjoy. |
bookmarked
|
Why you guys do this in php and not .htaccess is beyond me... i'm sure your server is crying right now.
|
All times are GMT -7. The time now is 12:52 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123