Forums / Cotonti / Support / url mod_rewrite page_add bug

question about page_add bug solving with mod_rewrite enabled

Trustmaster
#22183 2010-01-19 21:36
docs/ here is a root-level category we provide our "wonderful urls" for. The above rule provides "add" rule for 2 levels of categories nested in docs. So, normally you should provide such a rule for every level of nesting. E.g. for 2 levels of nesting in category "foo" and 3 levels of nesting in "bar" it would be:
foo/([a-z-]+)/([a-z-]+)/add$ page.php?m=add&c=foo-$1-$2
foo/([a-z-]+)/add$ page.php?m=add&c=foo-$1
bar/([a-z-]+)/([a-z-]+)/([a-z-]+/add$ page.php?m=add&c=bar-$1-$2-$3
bar/([a-z-]+)/([a-z-]+)/add$ page.php?m=add&c=bar-$1-$2
bar/([a-z-]+)/add$ page.php?m=add&c=bar-$1
May the Source be with you!