Adobe Aem - Rewrite Static Asset Urls
Hello,
I am currently working with Adobe AEM 6.5 in an on-premises environment and would like to find a way to modify the HTML of web pages to automatically replace the img:src, link:href, and script:src attributes. Specifically:
- Resources with a path starting with /etc.clientlibs/ should be replaced with https://mycdn.it/etc.clientlibs/
- Resources with a path starting with /content/dam/ should be replaced with https://mycdn.it/content/dam/
Could you please guide me on the best approach to implement this solution ?
Thank you in advance for your support.