Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

Hi,

 

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

 

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

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.