Port redirect_can_redirect().