Creating Mapping Definitions in AEM
In a standard installation of AEM you can find the folder:
/etc/map/http
This is the structure used when defining mappings for the HTTP protocol. Other folders ( sling:Folder) can be created under /etc/map for any other protocols that you want to map.
Configuring an Internal Redirect to /content
To create the mapping that prefixes any request to https://localhost:4503/ with /content:
-
Using CRXDE navigate to
/etc/map/http. -
Create a node:
-
Type
sling:Mapping
This node type is intended for such mappings, though its use is not mandatory. -
Name
localhost_any
-
-
Click Save All.
-
Add the following properties to this node:
-
Name
sling:match-
Type
String -
Value
localhost.4503/
-
-
Name
sling:internalRedirect-
Type
String[] -
Value
/content/
-
-
-
Click Save All.
This handles a request such as:localhost:4503/geometrixx/en/products.html
as if:localhost:4503/content/geometrixx/en/products.html
had been requested.
/etc/map.publish to hold the configurations for the publish environment. These must be replicated, and the new location ( /etc/map.publish) configured for the Mapping Location of the Apache Sling Resource Resolver of the publish environment.Was this content helpful?
Announcements
Get hands-on with agentic AI.
Explore how AI agents work together through real examples and hands-on practice. Join your local User Group to design an agent workflow with your peers and leave with a practical framework you can apply to your own work.
Find an eventAdobe Experience Manager Roadmap Webinar, Part 1 (Sites & Assets) - Americas & EMEA
Preview the AEM Sites and Assets roadmap and agentic innovations. Ask the team live.
Adobe Experience Manager Roadmap Webinar, Part 1 (Sites & Assets) - Americas & APAC
Preview the AEM Sites and Assets roadmap and agentic innovations. Ask the team live.
Adobe Brand Visibility Roadmap Webinar - Americas & EMEA
Preview the Brand Visibility roadmap across Brand Concierge and AEM Sites. Ask live.