What is the best way to beautify and rewrite the URL for sling model exporter | Community
Skip to main content
Level 2
August 2, 2022
Solved

What is the best way to beautify and rewrite the URL for sling model exporter

  • August 2, 2022
  • 1 reply
  • 596 views

Hi,

 

Have a sample Sling Model Exporter URL like "http://localhost:4502/content/wknd/language-masters/en/magazine/jcr:content/root/container/text.model.json".

 

Want to hide all project paths, node paths, etc, and create a beautified simple exporter URL that can be called from UI.

 

Eg. http://localhost:4502/magazine/container/text.model.json 

 

We can use "/etc/mapping", "Sling resource resolver config" ,"mod_rewrite", Filters  etc. But wanted to know which one is the best and recommended scalable approach.

 

Thanks

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 Mohit_KBansal

A combination of "Sling resource resolver config" and "mod_rewrite" always worked for me, be it single site hosting, or multiple sites hosted on the same AEM instance. I have also used Sling resource resolver to short DAM path, along with content paths.

1 reply

Mohit_KBansal
Adobe Employee
Mohit_KBansalAdobe EmployeeAccepted solution
Adobe Employee
August 2, 2022

A combination of "Sling resource resolver config" and "mod_rewrite" always worked for me, be it single site hosting, or multiple sites hosted on the same AEM instance. I have also used Sling resource resolver to short DAM path, along with content paths.