Root domain · English
One domain. Two languages. Routed before it reaches the server.
This page lives at the root, sitio.com. English-preferring visitors stay right here. Spanish-preferring visitors are sent to /es/ by an edge redirect rule, without any code running at the origin.
Request path
Visitor
Sends Accept-Language
→
Edge
Checks preferred language
→
English — stays put
sitio.com
Spanish — 301 redirect
sitio.com/es/
Why this page exists
This is a small working example of a bilingual site where the language decision happens at the edge (Cloudflare) rather than in application code. English is the default and lives at the root; Spanish lives under /es/.
Each version declares the other through hreflang alternates and a self-referencing canonical tag, and the language switcher above links directly between them so both paths are discoverable independent of any redirect behavior.