I define a rewrite rule on an init hook like:
add_rewrite_rule( 'foobar/(abc|def|ghi)/(.+)(/(\d.+))', 'index.php?my_action=$matches&my_name=$matches&my_version=$matches', 'top');
This works with following URL on a single WP installation:
However it doesn't on a multisite installation.
I have no idea what I should add to the
.htaccess file and I prefer a "proper" solution.
I have forget something important:
I'm using WordPress MU Domain Mapping to use different domains and while the network is on
network.example.com the site I use
add_rewrite_rule is sub.example.com