Added 404 handling for physical routes