Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Languages on a static site

A multilingual site as static copies - one target per siteaccess, the language links (hreflang) pointing to the right copy or the live site, a search index per language.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/static-publishing/languages-on-a-static-site.md

On this page

Languages on a static site

What you'll have at the end

Each language of the site as its own static copy, with language links that lead visitors to the right place.

The report of a build: the search index with its languages
The report of a build: the search index with its languages

One target per siteaccess

A target publishes one front siteaccess, so it follows that siteaccess's languages and address scheme. A site with eng and ger siteaccesses gets two targets, for example two folders of one repository (Folder) or two repositories, each with its own public address.

The <link rel="alternate" hreflang="..."> links of every page are written as absolute addresses: to the page in this copy when it holds it, otherwise to the live site. A language switcher whose links go to another siteaccess leads to the live site too, because the copy does not hold that language's pages. When the other language has a target of its own, give the live site's address of that language as the target's Live site, or link the copies to each other in the design.

The search page keeps one index per language, read from the lang attribute of each page's <html>. The search page loads the index of its own language first.

Next step

SEO on a static site.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x