I have a WordPress blog where much of the early history is full of very sparse posts. It’s set up to use full mod_rewrite permalinks. I have a “month” archive, with links to the previous and next month included.
The problem is that, for any month without entries, I get a 404 rather than an empty month page. Without permalinks there’s no issue, but something bizarre is occuring thanks to the permalinks. For an example, go to http://www.mandible.net/2006/08/ and click the “2006 September” link. With permalinks off, going to http://www.mandible.net/?m=200609 works just fine (it shows a “no entries on this month” message, but still shows the previous/next arrows, which is what I want.)
Any suggestions on how to detect the “permalink-to-month-that-doesn’t-have-entries” case in my theme? I’m highly confused.