change HTTPRedirect to redirect