Prettified url redirection code