Top Level pages in wordpress giving 404, but child pages working fine

If you register new custom post types and get weird 404s, you just need to change your permalink settings. This happens to me pretty much every time. You can change the, right back to where they were before. It’s just the act of changing them that does the trick.