redirect to the correct location