Hey @vict-r,
I’ll link out to the redirects guide for posterity but I’ll summarise a few key points:
- Redirects are read from top to bottom. When a rule is met, we stop processing. Therefore, you need to think carefully about what you want from your redirects!
- Your most specific rules should be at the top of your file
- You can amalgamate ‘country’ and ‘lang’ redirects together
- With our redirect system at present, ‘country’ codes are more resilient than ‘lang’ codes.
However, all things considered, what you’re trying to achieve is definitely possible.
Your English speaking NA rule may look like:
/* /en/na/:splat 302! Country=ca,us Language=en
Your English-speaking Africa rule may look like:
/* /en/af/:splat 302! Country=ao,bw,cm,cg,cd,ke,mg,mw,mu,mz,na,za,tz,ug,zm,zw Language=en
And you may want to add a fallback of your choosing.
Hope this helps – happy to discuss further!