Randomizing redirect paths?

Crazy Monkey

Elite Member
Jr. VIP
Joined
Aug 4, 2015
Messages
7,123
Reaction score
900
Does anyone have a script or know a method to make a redirect link randomly select different paths? For example, if my redirect was www.xxxx.com/loans it would redirect to three possible auto loan sites, being randomly picked each time? Thanks!
 
You can do it from backend and frontend. For frontend you may use javascript to run smth like this on page load:
Code:
<script>location.replace("random_page_url");</script>
Or from backend you may change html headers, doind basically same thing just without loading the brokering page first. Backend aproach is better as it prevents users from blocking random redirects and does not relay on javascript.
 
If you're using WordPress then you can do this easily with pretty link pro plugin.
 
Back
Top