Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Sling:mapping node is rewriting to absolute paths

Avatar

Level 3

I followed these instructions to setup my multiple domains on AEM:

http://www.cognifide.com/blogs/cq/multidomain-cq-mappings-and-apache-configuration/

I noticed that this in fact adds the domain name to my URLs. Which is undesired. Does anyone know how to create sling:mappings to shorten URLs without adding the domain name?

To clarify, what I mean with: it adds the domain name to the links:

When using the setup form above the cached pages on teh dispatcher contain hardcoded absolute links containing the domain name. Rather than relative URLs.

I had a look here as well:

http://docs.adobe.com/docs/en/dispatcher/disp-domains.html

But that document doesn't explain to me how resources starting with /etc and /libs are correctly stored under /docroot/etc or /docroot/libs instead of /docroot/content/site-a/etc and /docroot/content/site-a/libs. If someone can tell me what exactly is doing that, that would be great.

0 Replies