How to add hierarchical taxonomy with parent child relation to URL?

How to add hierarchical taxonomy with parent child relation to URL?