I've searched everywhere but can't seem to find the solution.
What I'm looking for is :
Whenever a user visits mysite.com
, I'd like to redirect them to a different URL each time, chosen randomly.
For instance:
When user A
visits mysite.com
, they should be redirected to google.com
.
When user B
visits mysite.com
, send them to facebook.com
.
And when user C
visits mysite.com
, direct them to youtube.com
.
The cycle then resets and continues with other users.
1st user -> redirects to google.com
2nd user -> redirects to facebook.com
3rd user -> redirects to youtube.com
reset cycle
4th user -> redirects to google.com
5th user -> redirects to facebook.com
and so on....
Edit : My website is a simple one built using html and css.