Ordinarily when a web site URL changes HTTP 301 permanent redirect is used tell a search engine where to look, HTTP 404 errors can be categorically sent to the home page.
There is a full search capability with any SQL driven system and WordPress supports it with all themes. Given some URL errors we estimate that .
We have noticed this capability with Azure but Linux has had the capability with the .htAccess file which has all the redirects whether case by case or catch all like our error handler..
WordPress handles the redirect with a plug-in. There are many choices depending on the need, A custom case by case is possible for URL rewriting needs etc.
404 to 301 redirects permanently any bad URL to the home page. This is the simplest solution. Google likes this solution too.