Blog Sections Open

Using Different Domains for Each Language in bLang

A practical multi-domain bLang setup for Evolution CMS projects that want language switching across separate hostnames.

bLang becomes much more interesting when it moves beyond simple path prefixes and starts driving real language-specific domains. The donor topic showed a compact but useful pattern: map domains to language codes, set the active language from the current host, and generate alternate URLs from the same configuration.

Core idea

sitename.com=en
sitename.ru=ru

With that mapping, plugin logic can build language-specific URLs, set the right lang parameter from HTTP_HOST, and even keep separate cache behavior for not-found responses when needed.

Why this is useful

  • Language domains become explicit instead of implied.
  • Cross-domain language switching stays predictable.
  • It fits projects where each locale is a real market presence, not just a translated section.

For multilingual Evolution CMS builds, this is a much cleaner direction than bolting domain switching on after the routing layer is already complicated.

Newer post

Fixing Image Paths for the Second Site in a Multisite Evolution CMS Setup

How to resolve image path problems when a second site in a multisite Evolution CMS setup still points at the wrong assets location.

Older post

Duplicating Selected Rows in DocLister with prepare and Extenders

How to duplicate or enrich selected DocLister rows cleanly with prepare logic or extenders in Evolution CMS.