Step1: We need to change the
resource resolver configuration and add a new parameter in the url mapping.
/content/ProjectName/en/-/. It will shorten the url in application by removing
/content/Projectname/en.
Step2: To redirect request path to target path I have added sling:mapping in etc/map/http
Created a node with
internal_redirect of jcr:primaryType:sling:mapping
Add the properties
sling:redirect/requestpath
sling:match
[^/]+/targetPath
Step3: I have created a
vanitypath property in
/content/requestpagepath/jcr:content.
sling:vanityPath: /vanityname


