I’m having a problem with a rewrite rule and permalinks. I’ve a page which uses a custom template, which started out named “Members” and the slug was “members”. So the URL was: www.mydomain.com/members Then, I changed the page name and slug to “Volunteers” and that should be it. When I go to the URL www.mydomain.com/volunteers it works and shows everything correctly (the custom template loops over and displays a custom type – so the page is only a “container”). But then after some time, when I go back to the URL, it displays everything wrong, or actually, it displays some other php file (haven’t figure out which but it must be another php file, because it doesn’t show the 404 error).
I then go to the Permalinks settings. Change the setting, save and then change it back to the original (I read somewhere that this could solve a URL slug problem). Then it works again fine. But the joy is short because after sometime it changes back to the “faulty” page and I’ve notice that in the area, it shows “Members”, so it clearly “returns to default” and it can’t find any page called members. The page slug is still volunteers.
I now tried to download the database when it was faulty, correct it with the permalink change-changeback method, and downloaded that database. And the funny thing is that when it is faulty, it has the line “re_write {mydomain.com/volunteers …} but it doesn’t in the “correct” structure
Does someone has an answer, explanation or a suggestion to how I can get the URL re_write / slug stay the right way and not getting it “set back” all of the sudden. It is like a cache or something takes over. I hope I’ve explained myself correct enough otherwise please let me know.
Sincere
- Mestika