When I write a post and go to view it at the bottom of the page, I get a 404 error. If I view the blog, the post is there. If I click any of the links on the blog for posts, etc, I get a 404 error.
The link used to find a post or page or archive is incorrect. If I substitute the correct url, it shows up. However the automatically produced links are all incorrect. I have reinstalled this blog three times with new mysql databases. The problem continues.
How do I correct this error?