How do I create a simple resource resolver or /etc/map rule for an internal redirect? | Community
Skip to main content
Level 3
October 16, 2015
Solved

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

  • October 16, 2015
  • 2 replies
  • 810 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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

2 replies

Level 3
October 16, 2015

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

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

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