Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Sub-Domains and URL Mapping

Avatar

Level 2

Hi Team -

We have 200+ sub-sites along with the main site in our AEM platform. We are yet to go to production. To strip the content path we are depending on the configurations in JcrResourceResolverFactoryImpl, and adding the path that needs to be stripped under the property config "URL Mappings" (resource.resolver.mapping) as /content/mysite/en/:/, /content/sub-site/home/:/, /content/sub-site02/home/:/.....so on till 200 (so far tried with few not added 200 yet). And at the dispatcher level we are configuring the homepage path for each site. Having said that we have 200+ sites and depending on the below config,

1. Will it impact any performance while trying to resolve this many paths ?

2. Any best alternative approaches ? (We can use etc/maps but even that is same, I feel it as a tedious thing as we need to maintain environment specific configs)

/apps/commons/config.publish/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl

Thanks,

Harish

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Using maps for URL mapping is the recommended approach https://helpx.adobe.com/in/experience-manager/kb/multi-domain-management-aem-mappings-for-url-shorte....

 

It should be able to scale well for 200 sites.

 

There is a good video comparing the various approaches of URL shortening and their pros and cons https://www.youtube.com/watch?v=bJ_cXcAE7G8&ab_channel=TechForum

I would recommend you to go through this once.

 


Aanchal Sikka

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Using maps for URL mapping is the recommended approach https://helpx.adobe.com/in/experience-manager/kb/multi-domain-management-aem-mappings-for-url-shorte....

 

It should be able to scale well for 200 sites.

 

There is a good video comparing the various approaches of URL shortening and their pros and cons https://www.youtube.com/watch?v=bJ_cXcAE7G8&ab_channel=TechForum

I would recommend you to go through this once.

 


Aanchal Sikka