I don't know if it is possible to achieve this. I want to create custom rewrite rule to redirect an URL to other one.
For now, my URL is like :
/store-director/storeName-directoreName/
I want my URL to be like :
/store/storeName/directorName
I tryed something like this :
add_rewrite_rule('^store/([^/]*)/([^/]*)/?','store-director/$matches[1]-$matches[2]','top');
It doesn't work, it redirects to an other page...
/storeName-directoreName/
? Is that the slug of a page?