Changed the 404 redirect to use the appropriate method