reseting the permalinks did get rid of the 404 error, but now the links take me to an index of my blog. Also, in WordPress when I try to preview a post it does the same thing. I think I must have deleted something that was needed without realizing it.