GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   Redirecting domains (https://gfy.com/showthread.php?t=1088976)

KyleC 11-12-2012 09:46 AM

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 $?

JamesM 11-12-2012 10:54 AM

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

KyleC 11-12-2012 11:07 AM

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

CamsMaster 11-16-2012 03:47 PM

yap php does it all if you know what you want first of all

Tent Pitcher 11-18-2012 11:23 PM

Quote:

Originally Posted by KyleC (Post 19308927)
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.


All times are GMT -7. The time now is 04:03 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc