What is the best way to beautify and rewrite the URL for sling model exporter | Adobe Higher Education
Skip to main content
Level 2
August 2, 2022
해결됨

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

  • August 2, 2022
  • 1 답변
  • 604 조회

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

이 주제는 답변이 닫혔습니다.
최고의 답변: 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 답변

Mohit_KBansal
Adobe Employee
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.