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

Allow URLs without extension to bypass the dispatcher

Avatar

Level 4

Hi,

We have redirects with Sling Mappings, but some of them are redirects without extension. Therefore the dispatcher is blocking these requests.

What are recommended ways to fix this?

Vanities are working fine, since I am using the vanitiy_url section. And redirects with extension as well, the extensionless and with trailing slash are the problem.

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Please refer following Article on how to handle Extensionless URL and their caching

 

https://aemtreasury.wordpress.com/2015/04/21/how-to-make-dispatcher-cache-vanity-url-which-without-e... 

 

The idea is

  • Dispatcher will NOT cache any URL without extension.
  • Append .html to all HTML requests so it can be cached by the dispatcher.
  • This is based on the assumption the publisher is able to translate friendly URL with .html extension

Aanchal Sikka

View solution in original post

3 Replies

Avatar

Level 4

For example:

/test -> it doesn't work

/test.html -> it does work

Apache 2.2.15 and Dispatcher version is 4.2.2

Avatar

Correct answer by
Community Advisor

Please refer following Article on how to handle Extensionless URL and their caching

 

https://aemtreasury.wordpress.com/2015/04/21/how-to-make-dispatcher-cache-vanity-url-which-without-e... 

 

The idea is

  • Dispatcher will NOT cache any URL without extension.
  • Append .html to all HTML requests so it can be cached by the dispatcher.
  • This is based on the assumption the publisher is able to translate friendly URL with .html extension

Aanchal Sikka

Avatar

Administrator

@ronnyfm Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni