Hello Guys

How I can change the Url structer?

I want to change the "category and subcategory in url" to ads Nr (Reference Number)