LocaleRouter
How the Worker resolved this page
- Host "com.colder.cc" maps to site "com", market "intl".
- Site "com" has one language, so the locale is en and there is no path prefix.
- Slug "" (the home page) in en belongs to the page id "home", and each locale has its own slug for that id.
- This page lists the hreflang codes en, x-default, fr-FR, fr, fr-BE, nl-BE, and every version lists the same set.
- hostname
- com.colder.cc
- resolved from
- host
- site
- com
- market
- intl
- path prefix
- (none)
- locale
- en
- slug
- (home)
- page id
- home
One build serving several countries
This site, the French site and the Belgian site run on the same Worker and share one content store. The Host header decides which country site you get.
Other versions
- International (en) https://com.colder.cc/
- France (fr-FR) https://fr.colder.cc/
- Belgique (fr-BE) https://be.colder.cc/fr/
- Belgiƫ (nl-BE) https://be.colder.cc/nl/
Try these
Open each URL. The expected response is beside it.
- https://com.colder.cc/about 200, en, page id "about"
- https://fr.colder.cc/a-propos 200, fr-FR, page id "about" under its French slug
- https://fr.colder.cc/about 404, English slug on the French site
- https://be.colder.cc/ 302 to /fr/, the Belgian default language
- https://be.colder.cc/nl/over-ons 200, nl-BE, page id "about" under its Dutch slug
- https://be.colder.cc/nl/tarifs 404, page id "pricing" has no Dutch translation
- https://be.colder.cc/de/ 404, /de is not a language on the Belgian site