Custom URL segment parameters for posts

Have you thought of making post type, taxonomy, terms?

If you do so, it will be a lot easier for you to code and get the above urls.

If any confusion, let me know.