![]() |
Script/Code/HTML for redirecting
Hey Guys,
I am redirecting traffic to an url and from there I would like to create/copy a code/script/html (whatever works) so when the traffic comes in, it could not just redirect to 1 url but to randomly use one from a list of url's each time or every 5th time for example. I hope I wrote it clearly. I am trying to explain it the best I can! I would really appreciate some help or advise! Thanks so much! :thumbsup Laszlo |
I use to have a php script that just picked a random url out of a text file to go to. Is this what your talking about ?
|
Quote:
Does it redirect too? Thanks in advance! :thumbsup |
I am still looking for a script. If anyone can help, it would be greatly appreciated. Thanks! :)
|
Quote:
Code:
<script type="text/javascript"> |
That won't work for users without Javascript, of course.
|
Quote:
|
here is a very simple example in php
<?php $urls = file('urls.txt'); $rand = array_rand($urls); header("Location: {$urls[$rand]}"); ?> in urls.txt make each line a url this is just a simple example and should be put before output otherwise you technically could put ob_start() at the beginning and supress output |
Better go the php way as above. :winkwink:
|
This is SEO suicide too, you know that right?
|
Quote:
|
Quote:
|
Quote:
|
no problem. It's very simple but if you need any more help with it just let me know
|
Quote:
|
Quote:
I just would like to let you know that I have made my first sale since I have started using your php code! Thank you so much!!!! :thumbsup Laszlo |
ha no problem glad I could help :)
|
Quote:
|
All times are GMT -7. The time now is 11:50 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123