Reputation: 557
As per the default addressing for a Sitecore multilingual solution, is there a way to change the default addressing, for example
www.mydomain.com/zh/products for a simplified Chinese to www.mydomain.com/sc/products
without altering the sitecore pipeline. Thanks
Upvotes: 0
Views: 336
Reputation: 353
You may register sc
language based on the template of zh
one on your machine. Then you can rename zh
language item definition in Sitecore.
It may work but there could be unknown repercussions as a result. Anyways if you decide to try it out, backup your databases before you start renaming those languages. If it does work and you give it a go, document it for those who'll take over solution after you. They'll be quite thankful for that :).
Upvotes: 0
Reputation: 5860
Without altering Sitecore pipelines or LinkManagers, the only obvious way I can think of achieving this would be to use the IIS Url Rewrite module. You could set up configuration in that, to rewrite some or all of your URLs.
What isn't clear from your question is; if you want to force ALL URLs onto the /sc/ path, or you want to get rid of language embedding in the url unconditionally? If the latter, you can modify your UrlOptions to disable "languageEmbedding" by setting it to "never".
Upvotes: 1