Plugin Rewriting Less specific rule is being matched
-
Someone using my tagging plugin is having an issue where the rewrite rules aren’t being used appropriately.
I’ve had him drop in the example code from the codec documentation; so *in theory* it should be working as a plugin ideally should (I..uh..need to make a few changes to my plugin code.)
What happens, is a request for tag/foo comes in; but instead of matching the rule
tag/(.+)/?$
it’s matching[^/]+/([^/]+)/?$
instead, which maps on toindex.php?attachment=$matches[1]
I think that it’s trying to create a page for the attachment that matches the name of the tag. In any case, it’s coming back with a 404 and not displaying any posts.
When I get a request for tag/foo, though; it “all just works”. I’ve got the generic’ish
[^/]+/([^/]+)/?$
rule in the list of rewrite rules as well as the tag ones.If anyone could point me in the general direction of configuration settings or environment’y things that would cause this behaviour for him, but not for me; I would be extremely pleased.
- The topic ‘Plugin Rewriting Less specific rule is being matched’ is closed to new replies.