Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to make Vanity URLs case insensitive without using dispatcher?

Avatar

Level 4

Can any one tell me how to make Vanity URLs case insensitive which are given in a page properties of a page in CQ ?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

well you can write Apache rewrite to convert your URL to all lowercase, Below are some helpful links for handling it on Apache level

http://www.askapache.com/htaccess/rewrite-uppercase-lowercase.html

http://serverfault.com/questions/177647/convert-and-redirect-url-in-uppercase-to-lowercase-using-hta...

with above approach only drawback is that author needs to make sure that whenever a page is created or vanity URL is defined in AEM it is all in lowercase, else once the request moves from Apache to AEM, it might not be able to identify the node in sling resource resolution process.

- Runal

View solution in original post

3 Replies

Avatar

Level 10

Hi there,

Thanks for reaching out to Adobe Community.

Please go through the below link and see if it helps:

https://helpx.adobe.com/experience-manager/kb/vanity-urls.html

Thanks!

Avatar

Level 4

Hi,

Thanks for responding, This works for case sensitive. But I want this to work for whatever case I enter. Could you help?

Avatar

Correct answer by
Community Advisor

well you can write Apache rewrite to convert your URL to all lowercase, Below are some helpful links for handling it on Apache level

http://www.askapache.com/htaccess/rewrite-uppercase-lowercase.html

http://serverfault.com/questions/177647/convert-and-redirect-url-in-uppercase-to-lowercase-using-hta...

with above approach only drawback is that author needs to make sure that whenever a page is created or vanity URL is defined in AEM it is all in lowercase, else once the request moves from Apache to AEM, it might not be able to identify the node in sling resource resolution process.

- Runal