Expand my Community achievements bar.

SOLVED

How do I create a simple resource resolver or /etc/map rule for an internal redirect?

Avatar

Level 3

Hi All.

I'd like to do a very simple internal redirect regardless of domain. For example, I want requests to

    /myapp

to map internally to

    /apps/mycompany/myapp

And anything under this path would be mapped appropriately. For example,

    http://localhost:4502/myapp/whatever.js

would return the file located at

    /apps/mycompany/myapp/whatever.js

Is there a way to do this? I'm on AEM 5.6.1.

Thanks!

David Frenkiel

1 Accepted Solution

Avatar

Correct answer by
Level 10

You can work with out of the box functionality:

http://docs.adobe.com/docs/en/cq/current/deploying/resource_mapping.html

For more advanced use cases that require link rewriting, etc -- see:

http://helpx.adobe.com/experience-manager/using/creating-link-rewrite.html

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

You can work with out of the box functionality:

http://docs.adobe.com/docs/en/cq/current/deploying/resource_mapping.html

For more advanced use cases that require link rewriting, etc -- see:

http://helpx.adobe.com/experience-manager/using/creating-link-rewrite.html

Avatar

Level 3

Thanks, Scott. It was all about the trailing slash for me.