Permalink failure due to wierd db change of rewrite_rules
-
Some of the older sites, running wpmu 2.9.2, get 404’s every now and then due to permalink failure. Apparently the content in rewrite_rules changes.
Anyone has any idea of what the problem might be?
I have tried to sum up some information below. Just write if you want more information..A little bit about the changes in rewrite_rules
Most of the time changes are (correct -> incorrect);
kategori -> Kategori (Category pages fail)
etikett -> Taggar (Tag pages fail)
etc…
(kategori = category, etikett/taggar = tag)
So just a change of content, lower case to higher case. Since ‘Kategori’ and ‘Taggar’ is default for swedish wordpress, we can assume that it just resets (while ignoring settings in permalink_structure etc).A little bit about wierdness around..
permalink_structure and tag_base remains intact. It seems like whatever is changing rewrite_rules is also ignoring the content of permalink_structure and tag_base.Temporary fix
We discovered pretty quick that resaving permalinks solves the problem, temporarily. At a start this was good enough, as permalink failure only happened once in a while. Now it happens more often, last week more than once a day.
So we made a script that every 5 minute removes content from rewrite_rules. This is enough to make it work as it should.A little about the installation
All sites are using domain mappings, w3tc, All in One SEO, Gravity Forms, Smart Youtube, and WP-Polls. Some sites are running Sociable and NextGEN Gallery. Think that list is pretty accurate. (There are a lot of sites on this installation, so it’s quite hard to be 100% accurate.)
- The topic ‘Permalink failure due to wierd db change of rewrite_rules’ is closed to new replies.