rewrite rules problem. Cannot add URI starting with "members"
-
I’m desperate after having googled and digged through core files all day, and I am no wiser on this.
I’m porting an existing site to WP and have added a lot of rules to the rewrite_rules array of $wp_rewrite through a function called by the ‘rewrite_rules_array’ filter.
Sometimes I have to remove existing rules from the array before I add my own, in order to avoid conflicts. So far so good.
But when I try adding URI’s starting with “members”, such as “members/register”, they just don’t work and instead cause a redirect to the site root.
What confuses me is that if I print out the contents of the $wp_rewrite->rewrite_rules array in a template (at which time all rules should be added) there are no other rules starting with “members” than my own?!
So…
1) Why doesn’t my rules work, if there are no conflicting ones?
2) I know that Buddypress has some URI’s starting with “members”. They work fine. But where do buddypress tell wordpress rewriting system about these URL’s???! – They don’t show up in the rewrite array..
- The topic ‘rewrite rules problem. Cannot add URI starting with "members"’ is closed to new replies.