Feature preview
There are three common forms of address arrangement for multilingual websites: path prefix under the same domain, subdomain split by language, and independent domain for each language. The path prefix has the least maintenance, and it is the easiest to express the switching between languages; subdomain and independent domain will split the host ownership, and configuration and verification need to be done separately. The site supports configuration and switching of multilingual sites, full-page HTML translation, and the pseudo-static rules should be able to cover all language paths.
When creating multilingual sites, how should the address structure of each language version be arranged, and whether the translation and original text should be placed under the same domain? There are usually three ways: using path prefixes to separate languages under the same domain, splitting subdomains by language, and each language using an independent domain. The difference between the three is not in how they look, but in maintenance volume and 'host ownership' - the path prefix does not change the host, while the latter two will split the site into multiple host identities, and configuration and verification need to be done separately.
The form of path prefix is to divide directories by language under the same domain, the original text and translation share a host identity, and switching languages is just changing the prefix. The form of subdomain is that each language has a separate hostname, and the search and communication channel will treat it as an independent host: one public communication channel clearly stipulates that each subdomain is regarded as an independent host, and it is necessary to create and manage separate key files for each subdomain. The form of independent domain name goes further, with the brand shell of each language also separated, suitable for scenarios of independent operation in different markets, the cost is that the number of configurations increases in proportion to the language.
First, let's talk about the maintenance amount. Under the same domain name, the certificate is only one, the robots configuration is only one, and the sitemap and model description files are all generated in one place; after being split into subdomains, these all need to be configured for each host, and any missing configuration will result in 'a certain language version not receiving updates'. Then let's talk about the paired relationship between languages: under the path prefix, the position of the original text and the translation is a regularized one-to-one relationship, and the switch links can be generated by the program; after the domain name is分散, the corresponding relationship needs to be maintained by the configuration, and it is easier to miss the other half during the revision.
Switching should be paired, this is the easiest thing to do wrong. Only place an 'Return to Original Text' entry on the translation page, and there is no link to the original text on the original page, the crawler reads a set of unidirectional links, and cannot judge whether these two pages are different languages of the same content. The reasonable approach is to treat language switching as a fixed exit on the page: each language version lists all available languages, and the current language also appears in the list; when there is no translation, give a clear default handling instead of letting the switch link point to an empty page.
The multi-language site support within the site is for multi-language site configuration and switching, with translation granularity performed on the entire page HTML. First, clarify the concepts: multi-sites manage the ownership and isolation between multiple independent sites, while multi-language manages the expression of the same content in different languages. Both can be used together, but they do not solve the same problem.This boundary should be recognized: It solves the issue of 'the same article having a readable page in other languages', not storing each field multiple times in the database.The organization of fields should be determined at the design stage of the content model - for structured content like product parameters, if each language field is filled with a set, the maintenance volume will increase linearly with the number of languages;Page translation leaves the increment on the page layer. The site has been providing AI writing assistance since 2023, and translation and writing are connected in the same process, and the cost of adding new language versions is lower than that of manually filling in fields.
The static rule determines how the address looks, and under multiple languages, it must meet two conditions: the same rule can cover all language paths, and it will not lead to a different matching branch because of the addition of a language prefix; the rewritten address can still be reversed out by the program to the corresponding original page. If the path with parameters is written differently in each language, the site map will appear with two address forms of the same content, which is easy to judge the index attribution wrong.
| Arrangement | Number of hosts | Configuration redundancy | Difficulty of switching in pairs | Applicable scenarios |
|---|---|---|---|---|
| Same domain path prefix | One | Low | Rule-based generation, easiest | Most corporate websites and content websites |
| Subdomain by language | One for each language | in | Configuration maintenance is required | Each language team operates independently |
| Independent domain | One for each language | High | Manual alignment is required | Operates separately in different markets |
Question: If the language has been divided using subdomains, is it worth changing back to the path prefix?Answer: It should be judged based on the maintenance cost. Changing back can reduce configuration redundancy, but it involves redirection and address change, which incurs a significant short-term cost, usually done together with the next version update
Question: Does a multilingual site need to generate a site map for each language?Answer: It is not necessary under the same host, and the addresses of all languages can appear in the same list; after being split into multiple hostnames, they should be handled separately according to the host
Question: Should the address be released first when the translation is not complete?It is not recommended to release an empty page. Either wait until the page is established and then enter the list, or clearly mark the default state in the switch list to avoid the crawler reading a page without content.
Preview
When managing multiple brand websites with a single backend, the boundaries of shared and independent layers are divided into three: the operation layer (deployment instances, listening ports, cache) is usually shared, the structure layer (content model, classification, template) is configured independently per site, and the data layer (documents, attachments, users and permissions) is isolated according to the site's ownership. Shared instances do not mean shared data; to determine whether to split the site or use the content model, consider whether the brand differences affect the structure and data layers.
Preview
How often does the background login status expire, essentially weighing two directions: the longer the session, the smoother the operation, but the longer the window of opportunity for stolen credentials to be used. The signature token itself has an expiration semantics, combined with the interface exposure range set according to the intent domain and round-level operation confirmation, can bring the risk of long sessions back to an acceptable range. In a high-risk repair, it is necessary to rotate the server signature key and change the administrator's password at the same time, changing only one item is equivalent to leaving half a door open.
Preview
The scheduled release and the pending release are not the same thing, nor are they the fifth and sixth states in parallel: the pending release is one of the four states of the document, and the scheduled release is responsible for handing over the step of 'pending release to formal' to the time point for automatic triggering. Set a content time later than the current time and save the content, it will enter the pending release, and be cut into a formal document at the appointed time; it is not visible to the outside world before it is triggered. Drafts can be viewed with preview parameters, and deleted content can still be restored in the recycle bin.