Best practices to rewrite urls with AEM
Background: In one of the implementations, we have a reverse proxy in front of AEM setup & following microservices based architecture and a hybrid content delivery model.
The requirements are to manipulate both inbound & outbound urls for architectural (& SEO) reasons. Broadly, it can be categorized into two buckets:
- Manipulate the urls within AEM
- Manipulate the urls outside AEM meaning mounting a specific pattern on AEM root to simplify routing between AEM & non-AEM apps
I've seen various implementations within & outside AEM using resolver, etc-map, Transformers, ACS-Commons, bespoke solutions, apache, nginx etc. but there are pros/cons to each depending on the end-goal.
I'd love to hear from the SMEs about the best practices or maybe pitfalls to avoid in general (or AEMaaCS specifically) that could potentially become a bottleneck down the line.
Thanks in advance!
CC: @joerghoh @tadreeves