Creating Mapping Definitions in AEM

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 http://localhost:4503/ with /content:

Using CRXDE navigate to /etc/map/http.

Create a new node:

Typesling:Mapping
This node type is intended for such mappings, though its use is not mandatory.

Namelocalhost_any

Click Save All.

Add the following properties to this node:

Namesling:match

TypeString

Valuelocalhost.4503/

Namesling:internalRedirect

TypeString

Value/content/

Click Save All.

This will handle a request such as:localhost:4503/geometrixx/en/products.html
as if:localhost:4503/content/geometrixx/en/products.html
had been requested.

Note:

See Resources in the Sling Documentation for further information about the sling properties available and how they can be configured.

Note:

You can use /etc/map.publish to hold the configurations for the publish environment. These must then be replicated, and the new location (/etc/map.publish) configured for the Mapping Location of the Apache Sling Resource Resolver of the publish environment.

Twitter™ and Facebook posts are not covered under the terms of Creative Commons.