Store code in URL only for selected store view. Excludes excessive "admin" system code from backend URL.
OverviewBack to top
Websites of major web shops, as a rule, support several locale interfaces, i.e. a certain language corresponds to a certain store view. Magento default functionality allows switching between different languages while keeping the same URL. This is something search engines would not be fond of, which could result in poor SEO. Well, yes, it is possible to designate a separate domain name per language. While this is true and can be achieved with standard means of Magento, this approach is not always a suitable option.
What other solutions are possible? Magento has a built-in feature to "Add Store Code to Urls". This might have been a nice way to deal with the indicated proble if the setting were not limited to Global Scope only. That said, we end up in a situation where admin can't exclude either default store code or any other store codes from URL. All this results in duplicates of website pages, the URL for the default store view looses its plain structure, the backend URL gets excessive "/admin/admin/" part.
Any other solutions suggested by the almighty Google either require special knowlegde, or just difficult to implement and don't guarantee stable work, or affect regular workflow of the server.
Enough of sad stories. Our team is introducing a simple, stable and handy extension that is smart enough to address all the issues covered earlier. It converts the Global scope of the setting "Add Store Code to Urls" into Store View enabling admin to enable and disable store codes only for certain store views. That is it!
After installing of the extension, the scope of the setting below should display Store View instead of Global.
• System > Config > GENERAL: Web > Url Options > Add Store Code to Urls
We’d recommend to keep the setting disabled under Default Values Scope. Having switched to a particular Store View, you are free to enable the setting if needed. As a rule, it applies to all Store Views, but the Default Store View.
Now it's time to enter the frontend and enjoy the magic!
• Store code in URL only for selected store view
• Excludes excessive "admin" system code from backend URL
• Full and correct technical integration
• Doesn't require any special server tune-up
Release NotesBack to top
- Compatible with CE: 1.7 1.8 1.8.1 1.9 1.9.1 1.9.2 1.9.3
- Stability: Stable Build