Hello guys, I'm looking for a link redirection script that redirects one link to multiple links For example our link is like mydomain.com/link and each time when someone clicks it should redirect to one of the links below in the row, I will add more than 100 links to the row. 1.Link google.com 2.Link youtube.com 3.Link facebook.com 4.Link twitter.com There are probably scripts for my need but I just don't how they called... Can someone help me? Thanks
javascript can do it if you need 4 windows opened with one click if you just want to rotate the links then any scripting language will do
One solution could be you create a php script where your main link points to, like mydomain.com/link.php Inside this php script you have an array with all your links and you just select one randomly or however you want so select you link. A little example: <?php // your links array $links = array( 'http://google.com', 'http://youtube.com', 'http://facebook.com', 'http://twitter.com' ); // select random link and redirect header('Location: ' . $links[rand(0,count($links)-1)]); ?> PHP:
if you want it to redirect to random pages then this will probably be best too. http://ownedboxes.blogspot.com/2009/09/how-to-redirect-your-visitors-to-some.html