How to change the URL of a product?

Open the product in the backend and scroll the page down to the «Search Engine Optimization» section.
You will see the «URL Key» field.
You can set a custom URL for the product here.