我有一个多站点安装的WordPress。我已经安装了插件Monkeyman Rewrite Analyzer,所以我可以看到我注册的所有规则。下面的代码是我注册规则的方式:
add_action( \'init\', \'add_init_rules\' );
function add_init_rules() {
add_rewrite_rule(\'^car/([^/]*)/([^/]*)/?\',\'index.php?pagename=car&id=$matches[1]&make=$matches[2]\',\'top\');
}
我添加的规则不会出现在Monkeyman Rewrite Analyzer列表中,并且在尝试访问mysite时不会对站点产生任何影响。com/32423/testmake
有什么建议吗?