#dns #techarchitecture #routing
I worked a long time ago on BBC News (15+ years) and compiled redirects.
IIRC was a massive apache rewrite rules config (and associated acceptance tests to confirm correct source/dest and no looping).
Since then I worked on sites that had compressed 10 sites to 1, and regularly re-routed "for SEO purposes" (sigh).
Started out as nginx with a lua block that connected to redis. couple of layers of checks for exact match full url as key, then partial match on url prefix, the final domain only match.
final iteration was similar but using dynamodb instead of redis.
We had about 11 million redirects in redis for scale.