If you have a multi-language store and want to add Store Codes to this is the tutorial for you.
So your example urls will look like this yourdomain.com/en, yourdomain.com/us, yourdomain.com/uk.
Follow the below steps.
- Login to the Magento 2 admin panel
- Navigate to Stores > Configuration > General > Web and find the Url Options section.
- Choose to Add Store Code to URLs selecting Yes from the corresponding select box and Save Config.
- Clear Cache.
Did this post help you?
Tutsplanet brings in-depth and easy tutorials to understand even for beginners. This takes a considerable amount of work. If this post helps you, please consider supporting us as a token of appreciation:
- Just want to thank us? Buy us a Coffee
- May be another day? Shop on Amazon using our links.
Your prices won't change but we get a small commission.
Leave a Reply