![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Drunk and Unruly
Join Date: Jan 2002
Location: Hollywood
Posts: 22,712
|
![]() 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.
__________________
I've trusted my sites to them for over a decade... Webair, bitches. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Oct 2005
Location: St. Louis, MO
Posts: 671
|
__________________
Design | SEO | Photo / Video Editing ( ICQ 49354667 ) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Drunk and Unruly
Join Date: Jan 2002
Location: Hollywood
Posts: 22,712
|
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.
__________________
I've trusted my sites to them for over a decade... Webair, bitches. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Quote:
![]()
__________________
/(bb|[^b]{2})/ |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Drunk and Unruly
Join Date: Jan 2002
Location: Hollywood
Posts: 22,712
|
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.
__________________
I've trusted my sites to them for over a decade... Webair, bitches. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Too lazy to set a custom title
Join Date: Dec 2006
Posts: 23,400
|
Why you guys do this in php and not .htaccess is beyond me... i'm sure your server is crying right now.
__________________
i like waffles |
![]() |
![]() ![]() ![]() ![]() ![]() |