Sign in to Community
Sign in to view all badges
We have lots of pages in our AEM Publisher that end up returning a 302 or 301 redirect response.
Is there any way to configure Dispatcher to cache those, so they don't make their way to the publisher each time?
I tried turning on the "header caching" for the "Location" header, but that didn't seem to help.
I see articles on the Internet about setting up a Varnish cache to do this, but that's not feasible in our environment, hence why I am hoping there is a way to do it with Dispatcher.
you have to write rewrite rule in your Server httpd file :
this will help mod_rewrite - Apache HTTP Server Version 2.2
OR you can do in AEM by writing jsp.
More AEM/CQ5 SEO Best Practices: Redirects, Vanity URLs, and XML Sitemaps | Olson Digital
Hope these will Help!