Page 1 of 1

Is this possible?

Posted: Fri Dec 02, 2011 8:16 pm
by username1234
Hello.

Let me start with that I am not a php developer and I am not a programmer.

So this is what I want. I need a concept like bit.ly , but a bit different. I need my website to create URLs that redirect to multiple websites, lets call these URLs "Xlinks" . Let me give you an example.

Lets say I own 5 websites. I put them behind a Xlink and I post this Xlink here.
I get 100 clicks on the Xlink, but I don't want all 100 clicks to be delivered to just one website, I want my 5 websites to get 20 clicks each. So basically each time the Xlink is clicked, the user ends up on a different website.

Thanks in advance :)
:drunk:

Re: Is this possible?

Posted: Fri Dec 02, 2011 8:43 pm
by Celauran
Sure, that's possible. Rather than mapping the shortened link to one URL, you map it to five. When the shortened URL is called, you grab one of the five at random and redirect.

Re: Is this possible?

Posted: Sun Dec 04, 2011 12:34 pm
by egg82
another way would be to direct that link to a page that redirects to a random page. I like Celauran's idea better, though.

Re: Is this possible?

Posted: Sun Dec 04, 2011 4:36 pm
by twinedev
And even more, if you are wanting it to rotate per person, use a cookie to keep track for each separate visitor so instead of doing completely random, you are doing random of the ones they have not yet visited, (after all are hit, reset back to beginning)