I would like to remove the default store view code from the URL in Magento 2.1. How can I do this?

  • Please check my answer. And let me know if it's help
    – Kul
    Oct 25, 2016 at 21:38

1 Answer 1


You can add/remove store code from url same like magento 1. Follow below step:

  1. Goto magento admin
  2. Stores-> COnfigurations from Main menu
  3. In the General section right side you can see Web Tab
  4. In the Web tab there is field Add Store Code to Urls You can select suitable option for you from here. see below image.

enter image description here

  • The question is about ONLY the default store code, not ALL store codes. The setting pointed by your ads or removes store codes to url for ALL shop views. May 20, 2019 at 18:32

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.