Magento – How to remove default store view code from URL in Magento 2.1

defaultmagento-2.1

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

Best Answer

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

Related Topic