fixing up 404 for proper redirects and routing.