How to Add Store Codes to the URLs in Magento 2?

In case you have multiple languages ​​and stores and you want to add store code to the URL, it will look like yourdomain.com/en, yourdomain.com/it, yourdomain.com/fr,...etc

Today, I will show you how to add store code to the URL.

Navigate to Admin -> Configuration -> General -> Web and find the URL Options section. There you choose Add Store Code to Urls selecting Yes and Save Config

 

Store Codes are set while creating each store view manually in Stores -> All Stores and can be managed there.

 


Very simple, right? See you in the next post.