How to rewrite url for any specific taxonomy?

What you have is the correct code. Just replace it in register taxonomy function (you may find mention function in functions.php) at a ‘rewrite’: true with your code.