Skip to main content

Timeline for Custom Rewrite Rules Not Sticking

Current License: CC BY-SA 3.0

4 events
when toggle format what by license comment
May 5, 2015 at 23:21 comment added Dalen I was strugling with this problem too! Whenever I went in Settings > Permalink and Saved, my custom rewrite rules were removed. Adding theme also at init time solved the problem!
Jul 9, 2012 at 9:21 comment added CommentLuv Thanks @RussellHeimlich for the link to the example to check for the rule during wp_load. I was experiencing the same thing as you
Mar 22, 2012 at 15:17 comment added kingkool68 Good thing there is an example on the Rewrite Class codex page for how to check and automatically flush the rewrite rules if specific ones aren't found. codex.wordpress.org/Class_Reference/WP_Rewrite#Examples I added this check in and I'll see if it fixes the problem. Weird since similar code is on other sites and works just fine.
Mar 21, 2012 at 14:57 history answered fuxia CC BY-SA 3.0