- This topic is empty.
-
AuthorPosts
-
October 17, 2007 at 10:09 pm #751615
Anonymous
InactiveI used to do it that way but now I just make a redirect file called for example bodog.php and put nothing but this code in it:
header("location: http://www.bodoglife.com/welcome/134923/casino"); ?>
That way the next time bodog changes its name I only have to change the bodog.php file.
Someone in this Forum gave me that code and it work great. Way better than an html redirect. I forget the forum members name but thanks again :hattip:
October 17, 2007 at 10:11 pm #751616
goldaMemberI made a blog post about this not too long ago. Check it out here…
Hiding Affiliate LinksOctober 18, 2007 at 6:36 am #751630Anonymous
InactiveThanks for your replies. I don’t know php.
Greg, i cannot see a copy and paste code on your page but I took the code from the source file.
So would a correct code to Poker Stars look like that?
Testing it in IE that is looking very good.
Do I need any code from the head section? Or is the code just fine like that?
October 19, 2007 at 12:05 am #751730
supervinceMemberHere is another redirect you could use.
Create a file called click.php or go.php or anything you want
Then you could store all your affiliate links like this
$arr = array(
“bodog” => “http://your_bodog_affiliate_link.com”,
“poker-stars” => “http://pokerstarsaffiliatelink.com”,
“absolute” => “http://absolutepokeraffiliatelink.com”
);[/CODE]You can add or remove any links you want and just keep them in one big list like above. Just make sure to put a comma after every one except the last one.
Then you would do the redirect with the following code
[CODE]header(“location: “.$arr($_GET[‘id’]));[/CODE]
Here is a script you can copy and paste. Just change the links to your affiliate links and add any more you need.
[CODE] ‘http://your_bodog_affiliate_link.com’,
‘poker-stars’ => ‘http://pokerstarsaffiliatelink.com’,
‘absolute’ => ‘http://absolutepokeraffiliatelink.com’
);$link = isset($_GET[‘id’]) ? $arr($_GET[‘id’]) : ‘http://yoursite.com/sitemap’;
header(‘location: ‘.$link);
?>[/CODE]
Now if you want to redirect the user to bodog casino you would set up your link like this
[CODE]Bodog[/CODE]
or if you want them to go to poker stars…
[CODE]Poker Stars[/CODE]
and if someone goes to go.php for some reason without an id then they will be redirected to your sitemap (or you can change that line to any link you want).
Although there are better ways, this is good because you dont have to worry about using javascript to change the status bar, you can change all your links to a casino in a single file, and the script can be modified later if you decided you want to track the clicks and see which links and banners are performing better than others.[CODE]$arr = array(
“bodog” => “http://your_bodog_affiliate_link.com”,
“poker-stars” => “http://pokerstarsaffiliatelink.com”,
“absolute” => “http://absolutepokeraffiliatelink.com”
);[/CODE]You can add or remove any links you want and just keep them in one big list like above. Just make sure to put a comma after every one except the last one.
Then you would do the redirect with the following code
header(“location: “.$arr($_GET[‘id’]));[/CODE]
Here is a script you can copy and paste. Just change the links to your affiliate links and add any more you need.
[CODE] ‘http://your_bodog_affiliate_link.com’,
‘poker-stars’ => ‘http://pokerstarsaffiliatelink.com’,
‘absolute’ => ‘http://absolutepokeraffiliatelink.com’
);$link = isset($_GET[‘id’]) ? $arr($_GET[‘id’]) : ‘http://yoursite.com/sitemap’;
header(‘location: ‘.$link);
?>[/CODE]
Now if you want to redirect the user to bodog casino you would set up your link like this
[CODE]Bodog[/CODE]
or if you want them to go to poker stars…
[CODE]Poker Stars[/CODE]
and if someone goes to go.php for some reason without an id then they will be redirected to your sitemap (or you can change that line to any link you want).
Although there are better ways, this is good because you dont have to worry about using javascript to change the status bar, you can change all your links to a casino in a single file, and the script can be modified later if you decided you want to track the clicks and see which links and banners are performing better than others.[CODE]header(“location: “.$arr($_GET));[/CODE]
Here is a script you can copy and paste. Just change the links to your affiliate links and add any more you need.
‘http://your_bodog_affiliate_link.com’,
‘poker-stars’ => ‘http://pokerstarsaffiliatelink.com’,
‘absolute’ => ‘http://absolutepokeraffiliatelink.com’
);$link = isset($_GET[‘id’]) ? $arr($_GET[‘id’]) : ‘http://yoursite.com/sitemap’;
header(‘location: ‘.$link);
?>[/CODE]
Now if you want to redirect the user to bodog casino you would set up your link like this
[CODE]Bodog[/CODE]
or if you want them to go to poker stars…
[CODE]Poker Stars[/CODE]
and if someone goes to go.php for some reason without an id then they will be redirected to your sitemap (or you can change that line to any link you want).
Although there are better ways, this is good because you dont have to worry about using javascript to change the status bar, you can change all your links to a casino in a single file, and the script can be modified later if you decided you want to track the clicks and see which links and banners are performing better than others.[CODE] ‘bodog’ => ‘http://your_bodog_affiliate_link.com’,
‘poker-stars’ => ‘http://pokerstarsaffiliatelink.com’,
‘absolute’ => ‘http://absolutepokeraffiliatelink.com’
);$link = isset($_GET) ? $arr($_GET) : ‘http://yoursite.com/sitemap’;
header(‘location: ‘.$link);
?>[/CODE]
Now if you want to redirect the user to bodog casino you would set up your link like this
Bodog[/CODE]
or if you want them to go to poker stars…
[CODE]Poker Stars[/CODE]
and if someone goes to go.php for some reason without an id then they will be redirected to your sitemap (or you can change that line to any link you want).
Although there are better ways, this is good because you dont have to worry about using javascript to change the status bar, you can change all your links to a casino in a single file, and the script can be modified later if you decided you want to track the clicks and see which links and banners are performing better than others.[CODE]Bodog[/CODE]
or if you want them to go to poker stars…
Poker Stars[/CODE]
and if someone goes to go.php for some reason without an id then they will be redirected to your sitemap (or you can change that line to any link you want).
Although there are better ways, this is good because you dont have to worry about using javascript to change the status bar, you can change all your links to a casino in a single file, and the script can be modified later if you decided you want to track the clicks and see which links and banners are performing better than others.[CODE]Poker Stars[/CODE]
and if someone goes to go.php for some reason without an id then they will be redirected to your sitemap (or you can change that line to any link you want).
Although there are better ways, this is good because you dont have to worry about using javascript to change the status bar, you can change all your links to a casino in a single file, and the script can be modified later if you decided you want to track the clicks and see which links and banners are performing better than others.
October 31, 2007 at 9:15 am #752778Anonymous
InactiveI get alway this error
Fatal error: Call to undefined function: array() in /www/htdocs/w0023456d/go.php on line 9can someone help me
October 31, 2007 at 1:39 pm #752800
supervinceMemberSorry I had a typo in there. I’m coding asp for school and vb script uses () instead of [] when referencing an array. It gets confusing when your going back and forth with multiple programming languages.
Change line 9 to the following and it should work.
$link = isset($_GET[‘id’]) ? $arr[$_GET[‘id’]] : ‘http://yoursite.com/sitemap’;[/CODE][CODE]$link = isset($_GET) ? $arr[$_GET] : ‘http://yoursite.com/sitemap’;[/CODE]
October 31, 2007 at 2:01 pm #752804Anonymous
InactiveThanks for your help is working now.
Have i change in Robots.txt
Disallow: /go.php/
is that ok?October 31, 2007 at 2:10 pm #752806
supervinceMember@poquer777 143626 wrote:
Thanks for your help is working now.
Have i change in Robots.txt
Disallow: /go.php/
is that ok?User-agent: *
Disallow: /go.php[/CODE][CODE]User-agent: *
Disallow: /go.php[/CODE] -
AuthorPosts