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.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 11-12-2012, 09:46 AM   #1
KyleC
Confirmed User
 
KyleC's Avatar
 
Industry Role:
Join Date: May 2012
Location: NH
Posts: 323
Redirecting domains

If I have a site that is redirecting to one affiliate landing page, can I switch up the redirect at different intervals with other affiliates? I'm probably going to sell the domain anyways, but I'm just trying to see what happens. Has anyone had any success in redirecting URLs for $?
KyleC is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 11-12-2012, 10:54 AM   #2
JamesM
Confirmed User
 
Industry Role:
Join Date: Nov 2012
Posts: 732
you mean you want to redirect surfers to different/random urls from predefined urls.

if this is the case then you can do like this

PHP Code:
<?php
$arr 
= array("url1""url2");
header ("Location: " $arr[array_rand($arr)]); ?>
this will randomly send surfers to one of the url.

you can add many more urls in above code like this

PHP Code:
<?php
$arr 
= array("url1""url2""url3""url4""url5""url6");
header ("Location: " $arr[array_rand($arr)]); ?>
You can even send surfers from specific country to specific url also.

Thanks
JamesM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 11-12-2012, 11:07 AM   #3
KyleC
Confirmed User
 
KyleC's Avatar
 
Industry Role:
Join Date: May 2012
Location: NH
Posts: 323
Thanks for the code. I'm just using godaddy to redirect all surfers to one domain. I had no clue about sending them to different urls at random. PM me sometime
KyleC is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 11-16-2012, 03:47 PM   #4
CamsMaster
Confirmed User
 
Join Date: Mar 2009
Posts: 1,200
yap php does it all if you know what you want first of all
CamsMaster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 11-18-2012, 11:23 PM   #5
Tent Pitcher
Confirmed User
 
Tent Pitcher's Avatar
 
Industry Role:
Join Date: Nov 2012
Location: New Orleans
Posts: 213
Quote:
Originally Posted by KyleC View Post
If I have a site that is redirecting to one affiliate landing page, can I switch up the redirect at different intervals with other affiliates? I'm probably going to sell the domain anyways, but I'm just trying to see what happens. Has anyone had any success in redirecting URLs for $?
You didn't specifically ask it, but it is worth mentioning - redirects, especially on landing pages, will kill your search engine rankings and can negate any SEO you have in place. If you've got a great, high visibility domain and are just trying to make money from affiliate links then you might have some luck. But if you are just trying to make money redirecting an obscure domain to affiliate sites, don't expect to get rich anytime soon.
__________________
Tent Pitcher - Adult Search Engine

Last edited by Tent Pitcher; 11-18-2012 at 11:25 PM..
Tent Pitcher is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.