For some posts, I see 404 page, even though posts exist, where is the place in WP where using permalink is decided what object needs to rendered?
Thanks!
Jan Fabry wrote a very useful plugin that I think it would be helpful for you to analyze your rewrite rules.