301 Redirects via RewriteMap Not Working – Map File Created but Redirects Failing
- April 13, 2025
- 1 reply
- 2421 views
Hi all,
I’m trying to implement 301 redirects using RewriteMap in AEM Dispatcher. I’ve followed Adobe’s documentation on pipeline-free URL redirects, and everything seems to be in place — except the redirects aren’t working.
The .txt file is published in DAM with lines like this:
After deployment, I can see that the map file is generated at /tmp/rewrites/external_redirects.map and the logs confirm it’s being created successfully.
Here’s what I have in the rewrite.rules file:
So far, I’ve:
Verified the file is generated and readable
Confirmed the keys are using just the path (e.g., /legacy-url)
Checked that the map values are full valid URLs
Cleared the Dispatcher cache
Ensured the source .txt in DAM is published
Despite all this, hitting the short URLs just returns a 404 instead of redirecting.
Has anyone faced something similar or see anything I might be missing in the rewrite logic? Any help would be appreciated.
Thanks!