Is there any way to update URL Keys with SQL? I have thousants of wrong URL keys. If not any other solution?

1 Answer 1


I found it myself. Its very easy to do though the Magento 2 Importer in the System Tab.

Generate a file with data like


Where 12345 is you SKU and newurlkey is your new URl Key. And choose update/add.

After that reindex through ssh:

php bin/magento cache:flush
php bin/magento cache:clean
php bin/magento setup:di:compile
php bin/magento indexer:reindex

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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