Addresses and search engines
Addresses
The main language stays at the root; every other language lives under its prefix:
| French (main) | English | German |
|---|---|---|
https://example.com/ |
https://example.com/en/ |
https://example.com/de/ |
https://example.com/hebergement/tarifs/ |
https://example.com/en/hosting/pricing/ |
https://example.com/de/hosting/preise/ |
Each part of an address is translated, segment by segment: a child page keeps its parent's translated slug. A page gets its translated slug once, with its first translation, and keeps it, even when its title changes later. A slug is unique per language.
- A slug you change (in the review window or the block editor): the old address answers with a permanent redirection (301) to the new one.
- An address in the wrong language (the source slug under
/en/): redirected (301) to the translated one. - Categories, tags and archives are translated too:
/en/category/news/.
Prefixes and codes are set in Settings → Languages.
Imposed addresses
To change the translated address of one page, use the Address field of its translation editor. To keep addresses you already have (from another translation plugin, or decided by hand), send a file in AI Translator → Migration → Keep your existing addresses: Compare shows what would differ, Impose these addresses keeps them.
-
The table: one address per line, three columns: language, address in the main language, translated address. Tabs, semicolons or commas; a header line, blank lines and lines starting with
#are skipped. If your file has other columns, give the numbers of the three that count (from 1); the others are ignored.en_US https://example.com/hebergement/tarifs/ https://example.com/en/hosting/pricing/ en_US https://example.com/category/actualites/ https://example.com/en/category/news/ -
Compare writes nothing. For each line it gives the address the plugin will serve once the table is imposed: identical, different (listed with both addresses), or not translated (an address set aside in Settings → Contents → Addresses not translated, or a page excluded: shown, never counted as a difference).
-
Impose these addresses (after a confirmation) fixes each part of each address: those slugs are never translated again, and an address a page had before leads to the new one (301). A slug the model had given another page yields; a slug set by hand or imported that collides is left as it is and named. A table that contradicts itself (one slug translated two ways, one translation given to two slugs, addresses with a different number of parts) is refused, with the line and the reason.
From the command line, the same:
wp lrob-ai-translator addresses table.tsv --columns=1,2,3 # compare, writes nothing
wp lrob-ai-translator addresses table.tsv --columns=1,2,3 --impose # impose, then compare
The command ends in error while a difference remains, so it can stop a script before the switch.
What search engines see
On every translated page:
<html lang="en-GB">in the language of the page;- a canonical address in that language;
hreflanglinks to every language the page exists in, andx-defaulton the main language;- the page in the sitemap of WordPress, and in Rank Math's sitemap when Rank Math is active;
- with Rank Math, the SEO title, the description and the structured data (JSON-LD) in the language of the page, for pages and posts as for categories and tags (their own SEO title and description, social titles included); Rank Math's breadcrumb labels and the titles of its search and 404 pages too.
Texts of your theme and plugins ("Read more", dates, the search form) come from their own translation files, in the language of the page.
Pages not translated yet
A page that is not translated in a language stays out of the sitemap and of the hreflang links. What its address does is yours to choose (Settings → Display):
| Choice | The visitor | Search engines |
|---|---|---|
| Shown in its original language, with a message (default) | The original page, with a short message in the visitor's language, or yours. | The canonical address is the original: only the original is indexed. |
| Sent to the original page | Redirected to the original page. | A temporary redirection (302): the original is indexed. |
| Not found | Your theme's page not found. | A 404. |
Previews
While Show the translated pages on the site is off, the translated addresses answer as if the plugin were not there for visitors and search engines. Logged-in members of your team who open a translated address get its preview, with a banner that says so.