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


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.

|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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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