Allow URLs without extension to bypass the dispatcher | Community
Skip to main content
ronnyfm
Level 4
November 29, 2018
Solved

Allow URLs without extension to bypass the dispatcher

  • November 29, 2018
  • 3 replies
  • 2502 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by aanchal-sikka

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-extension/ 

 

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

3 replies

ronnyfm
ronnyfmAuthor
Level 4
November 30, 2018

For example:

/test -> it doesn't work

/test.html -> it does work

Apache 2.2.15 and Dispatcher version is 4.2.2

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
December 27, 2023

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-extension/ 

 

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
kautuk_sahni
Community Manager
Community Manager
January 2, 2024

@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