Vanity URL - Exclude from dispatcher pass through redirects
Hi,
We have a Vanity URL setup at page level on AEM and with the default settings, it works fine.
https://helpx.adobe.com/experience-manager/kb/ams-dispatcher-manual/disp-vanity-url.html
I also have a "resource mapping" setup to define redirects, and vanity URLs so that the internal structure of AEM content is hidden from the visitors. To achieve this, I have set up a passthrough redirect at the dispatcher's end (similar to https://github.com/adobe/aem-guides-wknd/blob/main/dispatcher/src/conf.d/rewrites/rewrite.rules#L21-L32).
Due to this scenario, vanity URLs are getting 404 though there are part of vanity URL file.
Is it possible to exclude vanity URLs from these redirects or is any alternative solution available?