Expand my Community achievements bar.

SOLVED

MSM - configuring a multilingual site

Avatar

Level 2

Hello Experts

 

We are trying to configure a multilingual site. The content structure is as following:

Main site

Language copies

The expected URL structure is:

Please guide if the above is possible to achieve. What kind of rule should be written in dispatcher for content hiding? What is the recommended approach?

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi Sumit,

you are rewriting incoming requests and outgoing links. So the incoming requests you will map 

from:

www.domain.com to /content/root-domain/index.html

Outgoing links are those links in pages that will get rewritten from

/content/root-domain/help/faq.html to /help/faq.html 

So, with your rules, you just need to make sure they are in the correct order.

Regards,

Opkar

View solution in original post

3 Replies

Avatar

Employee

Hi,

creating the site structure is as described in the docs for MSM [0]

If you were using different domains for each site you would use [3] [4]. As you are using the same domain, you can user JCR Resource Resolver and apache rewrite rules or /etc/map [5]. There is even a nice tool for /et/map/ rule management: http://cognifide.github.io/Carty/.

A good overview of both options [6]

Regards,

Opkar

[0] https://docs.adobe.com/docs/en/aem/6-2/administer/sites/msm.html

[1] https://docs.adobe.com/docs/en/aem/6-2/administer/sites/msm/msm-bp.html

[2] https://helpx.adobe.com/experience-manager/kb/index/msm_faq.html

[3]https://docs.adobe.com/docs/en/dispatcher/disp-domains.html

[4]https://helpx.adobe.com/experience-manager/kb/HowToMapDomains.html

[5]https://sling.apache.org/documentation/the-sling-engine/mappings-for-resource-resolution.html

[6] https://www.linkedin.com/pulse/url-management-aem-stack-tushar-garg

Avatar

Level 2

Hi

 

Thanks for sharing the info.

Just to add, we are already using URL mapping in dispatcher as  www.sitename.com/content/domain/en/home/ : www.domain.com

The challenge is that Ii now want to map www.sitename.com/content/domain/hi/home/ to www.domain.com/hi/ without impacting the earlier mapping

 


Regards

Sumit

Avatar

Correct answer by
Employee

Hi Sumit,

you are rewriting incoming requests and outgoing links. So the incoming requests you will map 

from:

www.domain.com to /content/root-domain/index.html

Outgoing links are those links in pages that will get rewritten from

/content/root-domain/help/faq.html to /help/faq.html 

So, with your rules, you just need to make sure they are in the correct order.

Regards,

Opkar