Thank you for the answer, Konstantin.
This is the code in my functions.php
function custom_rewrite_basic() {
global $wp_rewrite;
add_rewrite_rule('^/comparar-([a-z0-9-]+?)-con-([a-z0-9-]+)/?$', '/comparar/?c1=$matches[1]&c2=$matches[2]');
$wp_rewrite->flush_rules( false );
}
add_action('init', 'custom_rewrite_basic');
But it should be something wrong because is not working. Any idea?
Thanks again