Url rewrite for view emails