Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

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

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.