Using a Parent > Child structure with duplicate child url slugs; for urls like `category/parent-1/child` and `category/parent-2/child`. This example uses the ‘category’ taxonomy, but update for your hierarchical taxonomy.
Source: https://gist.github.com/joshuadavidnelson/282614233c25071669f2502d77a7a8f9