WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using scheduled posts as a event program, by making a loop pick up future posts.

Every now and again, the production site starts to show 404's for the single event pages, and to fix it I have to copy the contents of the rewrite_rule option from my local database, to production.

Does anyone know what is going wrong, and if I can prevent it?


It's worth noting that it was only the future events that get the 404

share|improve this question

It sounds like you need to flush your rewrite rules. There is a flush_rewrite_rules() function, although the codex isn't terribly useful with how it is used.

share|improve this answer
I switched to default permalink rules, which removed the rewrite_rules option. Does flushing the rewrite rules go beyond this? – Mild Fuzz Sep 14 '11 at 8:57
@MildFuzz I'm not 100% sure to be honest – Wipqozn Sep 14 '11 at 23:49
the codex doesn't even seem to know. It's a mystery!! – Mild Fuzz Sep 15 '11 at 7:35
@Mildfuzz so it would seem. I would experiment with it, but currently don't have a Wordpress installation to work from. – Wipqozn Sep 15 '11 at 10:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.