You set redirection for non-existant pages on the server. You will not have a page to work with in the browser, since the page the user requested does not exist.
In ASP.NET you can set up a default page in the customErrors section of the web.config file like this: