Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

AEM Resource Mapping is driving me crazy

Avatar

Level 4

we had this working in 5.6:

{ "jcr:primaryType": "sling:Mapping", "jcr:createdBy": "admin", "jcr:created": "Thu Jun 12 2014 21:19:45 GMT-0400", "sling:match": "55.55.55.55.4503", "sling:internalRedirect": "/content/oursite" }

I would have expected that if we access: http://55.55.55.55:4503/en/home.html

it would redirect me to: http://55.55.55.55:4503/content/oursite/en/home.html

but I get a sad and dry 404.

What is the problem here?

Thank you.

edit: we are running 6.0.0.SP2

1 Accepted Solution

Avatar

Correct answer by
Level 10

Have you followed all mapping instructions specified here:

http://docs.adobe.com/docs/en/aem/6-0/deploy/configuring/resource-mapping.html

Do you have 1 mapping or many mappings.

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Have you followed all mapping instructions specified here:

http://docs.adobe.com/docs/en/aem/6-0/deploy/configuring/resource-mapping.html

Do you have 1 mapping or many mappings.

Avatar

Level 10

As per your sample it gets applied only for http://55.55.55.55:4503 & you need specify rest of the things to match with $. Take a look at https://helpx.adobe.com/experience-manager/kb/HowToMapDomains.html

Avatar

Level 3

Hi,

I ran into similar issue as you did.We have to map the pages so that /content/<site_structure>/en/index.html to /en/index.html.

I have created the node localhost_any and added two properties  sling:match  and sling:internalRedirect

But still I get to see 404 error page. Could you please suggest how you resolved the issue or am'i missing any step in between.I followed the below adobe link for the instruction

https://docs.adobe.com/docs/en/aem/6-0/deploy/configuring/resource-mapping.html

Regards,

Swathi