How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?

I am working on a test. Where i want the follow to be able to work: https://1587469162.webton.dev/referenties/ = pagehttps://1587469162.webton.dev/referenties/hoofdcategorie/ = main taxonomyhttps://1587469162.webton.dev/referenties/hoofdcategorie/subcategorie/ = sub taxonomyhttps://1587469162.webton.dev/referenties/hoofdcategorie/subcategorie/referentienaam-3/ […]