None of the answers I’ve found are working for me. My situation may be slightly different though. I have the “directory” custom post type and would like to get to the point where the pretty URL follows this structure for category archive pages: /directory/%service-area%/%location%/.
Individual post pages should just be /directory/%postname%/
Read more here:: Pretty URLs for a multi-category archive page