Resource mapping is used to define redirects, vanity URLs and virtual hosts for AEM.
For example, you can use these mappings to:
1. Prefix all requests with /content so that the internal structure is hidden from the visitors to your website.
2. Define a redirect so that all requests to the /content/en/gateway page of your website are redirected to https://gbiv.com/ .
One possible HTTP mapping prefixes all requests to localhost:4503 with /content . A mapping like this could be used to hide the internal structure from the visitors to the website as it allows:
to be accessed using:
as the mapping will automatically add the prefix /content to /geometrixx/en/products.html .