Vanity URL- AEM 6.1

Avatar

Avatar
Validate 25
Level 3
Mahesh_Vikram
Level 3

Likes

12 likes

Total Posts

118 posts

Correct reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 3
Mahesh_Vikram
Level 3

Likes

12 likes

Total Posts

118 posts

Correct reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
Mahesh_Vikram
Level 3

04-07-2016

Hi All,

we have configured /etc/maps/ for URL shortening, we used domain name to configure and URL shortening is working as expected.

We have few vanity URL's, those are not working, when we access with domain name, requests are getting appended with /etc/maps configuration, when we remove /etc/maps configurations, working as expected.

 

Thanks,

viki  

Replies

Avatar

Avatar
Validate 1
Employee
Opkar_Gill
Employee

Likes

138 likes

Total Posts

952 posts

Correct reply

280 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Validate 1
Employee
Opkar_Gill
Employee

Likes

138 likes

Total Posts

952 posts

Correct reply

280 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
Opkar_Gill
Employee

04-07-2016

Hi Viki,

have you checked "Enable Vanity Paths"[1] in your JCR Resource Resolver configuration [0]?

Regards,

Opkar

[0]http://www.aemmastery.com/2015/03/15/aem-osgi-service-dive-resource-resolver-factory/

[1]http://www.aemmastery.com/wp-content/uploads/2015/04/resourceResolverFactory.png

Avatar

Avatar
Validate 25
Level 3
Mahesh_Vikram
Level 3

Likes

12 likes

Total Posts

118 posts

Correct reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 3
Mahesh_Vikram
Level 3

Likes

12 likes

Total Posts

118 posts

Correct reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
Mahesh_Vikram
Level 3

04-07-2016

Hi Opkar,

All the system configurations looks fine as per above link.

Thanks,

viki

Avatar

Avatar
Validate 1
Employee
Opkar_Gill
Employee

Likes

138 likes

Total Posts

952 posts

Correct reply

280 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Validate 1
Employee
Opkar_Gill
Employee

Likes

138 likes

Total Posts

952 posts

Correct reply

280 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
Opkar_Gill
Employee

04-07-2016

Hi Viki,

so you have selected "Enable Vanity Paths" and you vanity urls are still not getting resolved correct?

Regards,

Opkar

Avatar

Avatar
Validate 25
Level 3
Mahesh_Vikram
Level 3

Likes

12 likes

Total Posts

118 posts

Correct reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 3
Mahesh_Vikram
Level 3

Likes

12 likes

Total Posts

118 posts

Correct reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
Mahesh_Vikram
Level 3

04-07-2016

yes

Avatar

Avatar
Boost 1
Level 1
vivekanandm17
Level 1

Like

1 like

Total Posts

5 posts

Correct reply

1 solution
Top badges earned
Boost 1
Affirm 1
View profile

Avatar
Boost 1
Level 1
vivekanandm17
Level 1

Like

1 like

Total Posts

5 posts

Correct reply

1 solution
Top badges earned
Boost 1
Affirm 1
View profile
vivekanandm17
Level 1

23-10-2017

Hi Mahesh,

You should enable "Vanity Path Precedence"  in Apache sling resource resolver factory" From OSGi configuration console. It will ensure your vanity URLs are cosnidered first before the sling mapping.

Best Regards,

Vivek