Quantcast
Channel: WordPress.org Forums » [WordPress MU Domain Mapping] Support
Viewing all articles
Browse latest Browse all 3502

revaxarts on "[Plugin: WordPress MU Domain Mapping] add_rewrite_rule not working"

$
0
0

I define a rewrite rule on an init hook like:

add_rewrite_rule( 'foobar/(abc|def|ghi)/(.+)(/(\d.+))', 'index.php?my_action=$matches[1]&my_name=$matches[2]&my_version=$matches[4]', 'top');

This works with following URL on a single WP installation:

http://example.com/foobar/def/whatever/1.2

However it doesn't on the multisite installation.

It seems there's problem with rewrite rules on multisite an there's ticket #19896 which describes a similar problem on "non WP rules"

I have no idea what I should add to the .htaccess file and I prefer a "proper" solution.

https://wordpress.org/plugins/wordpress-mu-domain-mapping/


Viewing all articles
Browse latest Browse all 3502

Trending Articles