WordPress Media Attachment Page 404 Error

If you are getting a WordPress media attachment page 404 error, the solution may not be obvious. I got very frustrated with the unhelpful answers found searching on Google, so I dug deep to...