Vanity url is not working in Dispatcher AEM 6.5 SPA
Hi Folks,
I have configured a vanity path for one of the pages. It is working fine in the dev author and publish environments. However, it is not working in the dispatcher, throwing a 404 error in the network tab for the HTML and model.json files for that page.
I have made the necessary dispatcher changes mentioned below:
Farm file:
/vanity_urls {
/url "/libs/granite/dispatcher/content/vanityUrls.html"
/file "/tmp/vanity_urls"
/delay 300
}
Filter rule:
#allow vanity urls list path
/0101 { /type "allow" /extension 'html' /path "/libs/granite/dispatcher/content/vanityUrls" }
However, when I hit the vanity path in the dispatcher, it redirects to the page and then again redirects to a 404 error page. Please help me on this issue to resolve, Thanks in advance!