How to change the category url jusy show /category/%category_id% in wordpress?

I want to change the article url as “www..com/post/%post_id%”. For example, www..com/post/156/ And now, I did it. But I don’t know how to change the category like this. For example, www.***.com/category/12/. Generally, the category url is www..com/category/cat1/cat1.1/cat1.1.1/. I want to get www..com/category/cat1.1.1/( just show the last subcategory ). And now I want to only display…