Set the canonical URL and language
Set the canonical URL, language pages (hreflang), and page language (html lang) for each page.
When the same content opens at several addresses, you can set the address search engines should treat as the main one (canonical), and tell them about language pages (hreflang) and the page language (html lang).
When to use it
- Addresses that include queries like
?utm_source=...show up separately in search - Your board tells posts apart with a query like
?no=123, but the canonical URL is set to the single list address - You have language pages such as
/ko/and/en/, but search engines don't know they're the same page - The language stated on the page doesn't match its actual language
Canonical URL
Set it in the Canonical URL field of the rule. There are two ways.
| Method | Result |
|---|---|
| Enter an address | Tells search engines the address you entered is the canonical one. Please enter an address starting with https:// |
| Turn on Use the visited address as the canonical | Uses the visited address as the canonical. Only the queries listed in Query names to keep stay; the rest (utm and so on) are removed |
Board example: if a post's address is /board/view?no=123&utm_source=kakao, enter no in Query names to keep. The canonical URL becomes /board/view?no=123. A list address without no uses only its path as the canonical, such as /board/list. To keep several queries, separate them with commas.
The canonical URL doesn't move visitors. It's a signal that tells search engines which address you prefer, and search engines make the final call. To move visitors too, see Set up redirects.
Language pages (alternate)
Link translated versions of the same page to each other. Enter language codes like ko or en-US, and choose Default (x-default) for the default page.
| Pages | What to enter |
|---|---|
| One page | The language code and the https:// address of that language's page |
| Some pages · All pages | The language code and the Path start to replace (for example, /ko) |
Example for a rule covering some pages: for the path /ko/*, add en → /en and ja → /ja, and the /ko/about page is linked to /en/about and /ja/about as its translations. The screen shows a preview in the form e.g. on ..., the address is ....
Page language (html lang)
Tells search engines which language the page is written in. Enter codes like en, ko, or en-US. If your Korean site is being served with the page language en, you can fix it here.
Good to know
- You can't add the same language twice to language pages.
- We recommend adding the same rule to each language page so the translations point to each other.
- Even if the original page already has a canonical URL, the value set in the rule takes priority.