Skip to main content
Level 2
June 1, 2023
Resuelto

Render Single site from Multiple AEM paths

  • June 1, 2023
  • 2 respuestas
  • 917 visualizaciones

Hello

 

We are in the process of migrating and revamping a new website while also maintaining the existing site. The plan is to move few pages at a time to a new site structure at once. Lets say we have /content/sitea/a/b/c and /content/siteb/c/d/e but i want to have a single site https://branda.com/, Is it possible to render the a single site using different AEM Content Paths ? Example : https://branda.com/a/b/e . If so how can this be accomplished in AEM cloud. 

 

THanks 

Este tema ha sido cerrado para respuestas.
Mejor respuesta de Kiran_Vedantam

Hi @ranjithreddygu 

 

The rendering of the sites with the old content paths can be managed using etc/maps. It's just the way you write your redirects to point it to the site. But, it's always recommended to have all your page under one content path to eradicate multiple configuration issues.

 

Hope it helps!

Thanks,
Kiran Vedantam.

2 respuestas

Kiran_Vedantam
Community Advisor
Community Advisor
June 1, 2023

Hi @ranjithreddygu 

 

The rendering of the sites with the old content paths can be managed using etc/maps. It's just the way you write your redirects to point it to the site. But, it's always recommended to have all your page under one content path to eradicate multiple configuration issues.

 

Hope it helps!

Thanks,
Kiran Vedantam.

Shashi_Mulugu
Community Advisor and User Group Leader
Community Advisor and User Group Leader
June 2, 2023

@ranjithreddygu as suggested by @kiran_vedantam maintaining all the content of a site/domain under single content hierarchy is ideal and efficient way of using AEM.

 

But as you said, you are planning for some transformation/revamping and seems like you are rebuilding your content in new hierarchy. In this case, you can leverage your CDN and dispatcher rewrites to route the incoming request to correct paths based incoming patterns.

At CDN:

If my request is <domain>/a/b/c ---> <dispatcherdomain>/content/branda/a/b/c

If my request is <domain>/a/b/e ---> <dispatcherdomain>/content/brandb/a/b/e

And here dispatcher acts as passthru to publisher

 

Or

CDN acts as pass thru

At Dispatcher

Use your vhost rewrites todo same as above.