Fairly new to to magento. I am going for a headless approach, where I have created product listing pages with URLs as:


I want to change this to something like:


I have created a mapping of sorts in form of a dictionary/JSON/Text file, with productSKU as key and product-name as value.

Is there a way to do this? I read a little about NGNIX rewrites, but not sure if that'll work.



You have to rewrite the urls In magento 2 please go to admin >> Marketing >> SEO & Search >> url rewrites click on Add url rewrites select category and in target path add your sku path which is coming right now and in request path add the url you want adn then save. run below commands php bin/magento indexer:reindex php bin/magento cache:flush php bin/magento cache:clean

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.