← Back
Languages

Redirect Based on Browser Language in OpenResty Edge: Accept-Language Page Rule

  • Redirect based on browser language with an Accept-Language page rule
  • Match the root URI and the Accept-Language header with a regex
  • Test the French redirect with curl
  • Add a fallback rule that redirects other languages to English
  • Ship changes to every gateway node with no Nginx reload
Photo by Yichun Zhang
  • Redirect based on browser language with an Accept-Language page rule
  • Match the root URI and the Accept-Language header with a regex
  • Test the French redirect with curl
  • Add a fallback rule that redirects other languages to English
  • Ship changes to every gateway node with no Nginx reload
Contact us

Love to hear from you, Get in touch 👋

Message was sent successfully!

Our Team will get back to you within 24 hours.
x