URL rewriting in AEM cloud using etc/maps and resource resolver mappings
Hi AEM community,
I'm currently working on implementing URL rewriting as mentioned below:
From: `/content/test/en/gyms/services/personal-training/location`
To: `/gyms/location/services/personal-training`
The goal is to have the public-facing URL as `/gyms/location/services/personal-training`, which will correspond to the internal URL of `/content/test/en/gyms/services/personal-training/location.html`.
I've configured the etc/map mapping and resource resolver config entries accordingly (please see the attached screenshots).
While this setup works flawlessly in the local publisher environment, it's encountering issues when deployed to AEM cloud publish environments. Additionally, we have a link transformer configuration in place to transform the href of these pages which is also not working (maybe because rewrites are not happening) (as shown in the attached screenshot).
Can anyone please help on how to make it work in AEM cloud publish environments ?
Also, what is the correct place to add etc/mappings - under ui.apps or ui.content in the repo ?

