Sling:alias vs vanityUrl in AEM

Viewed 5223

what is the main difference between vanity url and sling:alias?

as per docs : here

sling:alias – The property may be set on any resource to indicate an alias name for the resource. For example the resource /content/visitors may have the sling:alias property set to besucher allowing the resource to be addressed in an URL as /content/besucher.

Vanity URL - You define Vanity URLs in CQ to create easy-to-remember and easy-to-search URLs on your website.

But still I can not sure what exactly is the difference and when do we use them. Please help me out in this.

1 Answers
Related