I'm created URL rules for my theme but some rules not applied in the correct order..
For example:
(1) This rule (with only one taxonomy) works fine:
/from/(.+?)/?$ => 'index.php?post_type=custom&from=' . $wp_rewrite->preg_index(1)
(2) And this another rule, with two or more taxonomies, not working because, the first rule (1) apparently it has higher priority or the regular expression is not well built.
/from/(.+?)/to/(.+?)/?$ => 'index.php?post_type=custom&from=' . $wp_rewrite->preg_index(1) . '&to=' . $wp_rewrite->preg_index(2),
I used "monkeyman rewrite analyzer" plugin to check my rules and this screenshot shows that this URL: .../from/madrid/to/toledo return the first rule instead the second.
What's wrong??