Why all of my links end up with 404 – page not found error?
It usually happens after dummy data import. In spite of the fact that permalink structure seems to be properly set (see Settings>Permalinks) to
... it hasn’t been actually saved. Simply hit Save Changes button and everything should work fine.