create a redirect for each item in the array