i want to rewrite the url of product from www.example.com/product-name.html To www.example.com/SKU.html

Someone can help me ?I am beginner of magento. Thank you.


If you are just looking to rewrite existing products and not implement any programatic change to the default way Magento creates URL keys then see below.

For Magento 1.x:


For Magento 2.x:


  • Thank you ,but i have more than 2500 existing products,maybe need to do some programing. Apr 22 '16 at 6:29
  • Alternatively, you could use this 301 import module: You would export all your products and change the column heads of the sku column to be what that module needs for the new URL and then import to bulk rewrite the URLs.
    – Christosis
    Apr 22 '16 at 12:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.