- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I added a French story to my magento 2 and my default is the English story.
When I switch between languages, I have this URL:
url_of_mymagento2/?__store=default
url_of_mymagento2?__store=french
I want something like
url_of_mymagento2/fr
Any help please?
Thanks in advance..
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: URL Rewrite with switcher languages
Yes, store codes are the best solution here. They are set while creating the store views and here is the article on how you can add store codes to the URLs:
https://magefan.com/blog/magento-2-adding-store-codes-to-the-urls
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: URL Rewrite with switcher languages
@johnpetersdca2 Is it recommend use store code to Multi-Website?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: URL Rewrite with switcher languages
Yes. it is better to use them in case you want to have more SEO friendly URLs.
Example from the original question:
NOT url_of_mymagento2?__store=french
BUT url_of_mymagento2/fr