Adding a custom 404 page that does the proper routing.