-
-
Save merkle-sitecore-gists/2d8e101f4275ed69ea5a91213cf3f4f8 to your computer and use it in GitHub Desktop.
International targeting SEO code snippets – Sitecore Symposium 2018 Handout. Sources: https://www.sitemaps.org/protocol.html and https://support.google.com/webmasters/answer/189077?hl=en
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="alternate" hreflang="x-default" href="https://www.mysite.com/" /> | |
<link rel="alternate" hreflang="de" href="https://www.mysite.com/de-de" /> | |
<link rel="alternate" hreflang="en" href="https://www.mysite.com/en-de" /> | |
<link rel="alternate" hreflang="es" href="https://www.mysite.com/es-es" /> | |
<link rel="alternate" hreflang="fr" href="https://www.mysite.com/fr-fr" /> | |
<link rel="alternate" hreflang="zh" href="https://www.mysite.com/zh-cn" /> | |
<link rel="alternate" hreflang="zh-CN" href="https://www.mysite.com/zh-cn" /> | |
<link rel="alternate" hreflang="en-US" href="https://www.mysite.com/en-us" /> | |
<link rel="alternate" hreflang="de-DE" href="https://www.mysite.com/de-de" /> | |
<link rel="alternate" hreflang="en-DE" href="https://www.mysite.com/en-de" /> | |
<link rel="alternate" hreflang="sk-SK" href="https://www.mysite.com/sk-sk" /> | |
<link rel="alternate" hreflang="en-AT" href="https://www.mysite.com/en-at" /> | |
<link rel="alternate" hreflang="en-CH" href="https://www.mysite.com/en-ch" /> | |
<link rel="alternate" hreflang="en-AU" href="https://www.mysite.com/en-au" /> | |
<link rel="alternate" hreflang="en-CA" href="https://www.mysite.com/en-ca" /> | |
<link rel="alternate" hreflang="en-IN" href="https://www.mysite.com/en-in" /> | |
<link rel="alternate" hreflang="en-MY" href="https://www.mysite.com/en-my" /> | |
<link rel="alternate" hreflang="en-GB" href="https://www.mysite.com/en-gb" /> | |
<link rel="alternate" hreflang="de-AT" href="https://www.mysite.com/de-at" /> | |
<link rel="alternate" hreflang="de-CH" href="https://www.mysite.com/de-ch" /> | |
<link rel="alternate" hreflang="zh-MY" href="https://www.mysite.com/zh-my" /> | |
<link rel="alternate" hreflang="zh-TW" href="https://www.mysite.com/zh-tw" /> | |
<link rel="alternate" hreflang="cs-CZ" href="https://www.mysite.com/cs-cz" /> | |
<link rel="alternate" hreflang="nl-BE" href="https://www.mysite.com/nl-be" /> | |
<link rel="alternate" hreflang="en-BE" href="https://www.mysite.com/en-be" /> | |
<link rel="alternate" hreflang="en-SE" href="https://www.mysite.com/en-se" /> | |
<link rel="alternate" hreflang="fr-BE" href="https://www.mysite.com/fr-be" /> | |
<link rel="alternate" hreflang="fr-FR" href="https://www.mysite.com/fr-fr" /> | |
<link rel="alternate" hreflang="fr-CA" href="https://www.mysite.com/fr-ca" /> | |
<link rel="alternate" hreflang="fr-CH" href="https://www.mysite.com/fr-ch" /> | |
<link rel="alternate" hreflang="hu-HU" href="https://www.mysite.com/hu-hu" /> | |
<link rel="alternate" hreflang="it-IT" href="https://www.mysite.com/it-it" /> | |
<link rel="alternate" hreflang="ja-JP" href="https://www.mysite.com/ja-jp" /> | |
<link rel="alternate" hreflang="ko-KR" href="https://www.mysite.com/ko-kr" /> | |
<link rel="alternate" hreflang="pl-PL" href="https://www.mysite.com/pl-pl" /> | |
<link rel="alternate" hreflang="pt-BR" href="https://www.mysite.com/pt-br" /> | |
<link rel="alternate" hreflang="ru-RU" href="https://www.mysite.com/ru-ru" /> | |
<link rel="alternate" hreflang="es-MX" href="https://www.mysite.com/es-mx" /> | |
<link rel="alternate" hreflang="es-ES" href="https://www.mysite.com/es-es" /> | |
<link rel="alternate" hreflang="sv-SE" href="https://www.mysite.com/sv-se" /> | |
<link rel="alternate" hreflang="th-TH" href="https://www.mysite.com/th-th" /> | |
<link rel="alternate" hreflang="tr-TR" href="https://www.mysite.com/tr-tr" /> | |
<link rel="alternate" hreflang="en-HU" href="https://www.mysite.com/en-hu" /> | |
<link rel="alternate" hreflang="en-CN" href="https://www.mysite.com/en-cn" /> | |
<link rel="alternate" hreflang="en-SG" href="https://www.mysite.com/en-sg" /> | |
<link rel="alternate" hreflang="zh-SG" href="https://www.mysite.com/zh-sg" /> | |
<link rel="alternate" hreflang="ro-RO" href="https://www.mysite.com/ro-ro" /> | |
<link rel="alternate" hreflang="id-ID" href="https://www.mysite.com/id-id" /> | |
<link rel="alternate" hreflang="nl-NL" href="https://www.mysite.com/nl-nl" /> | |
<link rel="alternate" hreflang="fi-FI" href="https://www.mysite.com/fi-fi" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="canonical" href="https://www.mysite.com/en-de" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<urlset xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
<url> | |
<loc>https://www.mysite.com/de-de/produkte</loc> | |
</url> | |
<url> | |
<loc>https://www.mysite.com/de-de/über-uns</loc> | |
</url> | |
<url> | |
<loc>https://www.mysite.com/de-de/kontakt</loc> | |
</url> | |
</urlset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<urlset xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
<url> | |
<loc>https://www.mysite.com/en-us/products</loc> | |
</url> | |
<url> | |
<loc>https://www.mysite.com/en-us/about-us</loc> | |
</url> | |
<url> | |
<loc>https://www.mysite.com/en-us/contact</loc> | |
</url> | |
</urlset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<sitemapindex xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
<sitemap> | |
<loc>https://www.mysite.com/de-de/sitemap-home-de.xml</loc> | |
<lastmod>2018-10-01T20:23:36Z</lastmod> | |
</sitemap> | |
<sitemap> | |
<loc>https://www.mysite.com/en-us/sitemap-home-en.xml</loc> | |
<lastmod>2018-10-01T20:23:36Z</lastmod> | |
</sitemap> | |
</sitemapindex> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment