Update deploy and redirect logic