Getting there - detecting valid uris, redirecting if so, throwing an alert if not