Skip to content

Instantly share code, notes, and snippets.

@dleone81
Created June 23, 2023 17:09
Show Gist options
  • Save dleone81/d106dbdb5ca8469756d8e6e866102a04 to your computer and use it in GitHub Desktop.
Save dleone81/d106dbdb5ca8469756d8e6e866102a04 to your computer and use it in GitHub Desktop.
This HTML page allows Googlebot to pick the right country and collects data from the target views. Based on rules, DNS manager has to catch the crawler only and display this page to it
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="description" content="A description of your website">
<meta name="keywords" content="">
<title>Put the title here</title>
<link rel="alternate" hreflang="en-it" href="https://www.yourdomain.com/it/en/">
<link rel="alternate" hreflang="it-it" href="https://www.yourdomain.com/it/en/">
<link href="/assets/images/favicon.ico" rel="shortcut icon">
<link type="text/css" rel="stylesheet" href="/assets/css/style.css" />
<base href="/">
<!-- layout country-selector -->
<link rel="alternate" hreflang="en-AU" href="au/en/" />
<link rel="alternate" hreflang="de-AT" href="at/de/" />
<link rel="alternate" hreflang="en-AT" href="at/en/" />
<link rel="alternate" hreflang="en-BE" href="be/en/" />
<link rel="alternate" hreflang="fr-BE" href="be/fr/" />
<link rel="alternate" hreflang="en-BG" href="bg/en/" />
<link rel="alternate" hreflang="en-CA" href="ca/en/" />
<link rel="alternate" hreflang="fr-CA" href="ca/fr/" />
<link rel="alternate" hreflang="de-CH" href="ch/de/" />
<link rel="alternate" hreflang="it-CH" href="ch/it/" />
<link rel="alternate" hreflang="fr-CH" href="ch/fr/" />
<link rel="alternate" hreflang="en-HR" href="hr/en/" />
<link rel="alternate" hreflang="en-CZ" href="cz/en/" />
<link rel="alternate" hreflang="en-DK" href="dk/en/" />
<link rel="alternate" hreflang="en-EE" href="ee/en/" />
<link rel="alternate" hreflang="en-FI" href="fi/en/" />
<link rel="alternate" hreflang="fr-FR" href="fr/fr/" />
<link rel="alternate" hreflang="en-FR" href="fr/en/" />
<link rel="alternate" hreflang="de-DE" href="de/de/" />
<link rel="alternate" hreflang="en-DE" href="de/en/" />
<link rel="alternate" hreflang="en-GR" href="gr/en/" />
<link rel="alternate" hreflang="en-HU" href="hu/en/" />
<link rel="alternate" hreflang="en" href="int/en/" />
<link rel="alternate" hreflang="it" href="int/it/" />
<link rel="alternate" hreflang="es" href="int/es/" />
<link rel="alternate" hreflang="fr" href="int/fr/" />
<link rel="alternate" hreflang="pt" href="int/pt/" />
<link rel="alternate" hreflang="ar" href="int/ar/" />
<link rel="alternate" hreflang="ru" href="int/ru/" />
<link rel="alternate" hreflang="zh" href="int/zh/" />
<link rel="alternate" hreflang="ko" href="int/ko/" />
<link rel="alternate" hreflang="en-IE" href="ie/en/" />
<link rel="alternate" hreflang="it-IT" href="it/it/" />
<link rel="alternate" hreflang="en-IT" href="it/en/" />
<link rel="alternate" hreflang="ja-JP" href="jp/ja/" />
<link rel="alternate" hreflang="en-JP" href="jp/en/" />
<link rel="alternate" hreflang="en-LV" href="lv/en/" />
<link rel="alternate" hreflang="en-LT" href="lt/en/" />
<link rel="alternate" hreflang="en-LU" href="lu/en/" />
<link rel="alternate" hreflang="en-NL" href="nl/en/" />
<link rel="alternate" hreflang="en-NZ" href="nz/en/" />
<link rel="alternate" hreflang="en-PL" href="pl/en/" />
<link rel="alternate" hreflang="pt-PT" href="pt/pt/" />
<link rel="alternate" hreflang="en-PT" href="pt/en/" />
<link rel="alternate" hreflang="en-RO" href="ro/en/" />
<link rel="alternate" hreflang="ru-RU" href="ru/ru/" />
<link rel="alternate" hreflang="en-RU" href="ru/en/" />
<link rel="alternate" hreflang="en-SK" href="sk/en/" />
<link rel="alternate" hreflang="en-SI" href="si/en/" />
<link rel="alternate" hreflang="ko-KR" href="kr/ko/" />
<link rel="alternate" hreflang="zh-KR" href="kr/zh/" />
<link rel="alternate" hreflang="en-KR" href="kr/en/" />
<link rel="alternate" hreflang="es-ES" href="es/es/" />
<link rel="alternate" hreflang="en-ES" href="es/en/" />
<link rel="alternate" hreflang="en-SE" href="se/en/" />
<link rel="alternate" hreflang="en-GB" href="gb/en/" />
<link rel="alternate" hreflang="en-US" href="us/en/" />
<link rel="alternate" hreflang="es-US" href="us/es/" />
<link rel="alternate" hreflang="x-default" href="it/en/"> </head>
<body id="country-selector">
<div id="render-main">
<div class="small-12 medium-6 columns">
<h3>Europe</h3>
<div class="row">
<div class="small-12 medium-6 columns">
<ul>
<li> <span class="flag flag-it" title="Italy"></span> <span title="Italia"><a type="text/html" href="https://www.yourdomain.com/it/it/" title="Your Brand Italy">Italia</a> / </span> <span title="Italy"><a type="text/html" href="https://www.yourdomain.com/it/en/" title="Your Brand Italy">Italy</a></span> </li>
<li> <span class="flag flag-at" title="Austria"></span> <span title="Österreich"><a type="text/html" href="https://www.yourdomain.com/at/de/" title="Your Brand Austria">Österreich</a> / </span> <span title="Austria"><a type="text/html" href="https://www.yourdomain.com/at/en/" title="Your Brand Austria">Austria</a></span> </li>
<li> <span class="flag flag-be" title="Belgium"></span> <span title="Belgique"><a type="text/html" href="https://www.yourdomain.com/be/fr/" title="Your Brand Belgium">Belgique</a> / </span> <span title="Belgium"><a type="text/html" href="https://www.yourdomain.com/be/en/" title="Your Brand Belgium">Belgium</a></span> </li>
<li> <span class="flag flag-bg" title="Bulgaria"></span> <span title="Bulgaria"><a type="text/html" href="https://www.yourdomain.com/bg/en/" title="Your Brand Bulgaria">Bulgaria</a></span> </li>
<li> <span class="flag flag-hr" title="Croatia"></span> <span title="Croatia"><a type="text/html" href="https://www.yourdomain.com/hr/en/" title="Your Brand Croatia">Croatia</a></span> </li>
<li> <span class="flag flag-cz" title="Czech Republic"></span> <span title="Czech Republic"><a type="text/html" href="https://www.yourdomain.com/cz/en/" title="Your Brand Czech Republic">Czech Republic</a></span> </li>
<li> <span class="flag flag-dk" title="Denmark"></span> <span title="Denmark"><a type="text/html" href="https://www.yourdomain.com/dk/en/" title="Your Brand Denmark">Denmark</a></span> </li>
<li> <span class="flag flag-ee" title="Estonia"></span> <span title="Estonia"><a type="text/html" href="https://www.yourdomain.com/ee/en/" title="Your Brand Estonia">Estonia</a></span> </li>
<li> <span class="flag flag-fi" title="Finland"></span> <span title="Finland"><a type="text/html" href="https://www.yourdomain.com/fi/en/" title="Your Brand Finland">Finland</a></span> </li>
<li> <span class="flag flag-fr" title="France"></span> <span title="France"><a type="text/html" href="https://www.yourdomain.com/fr/fr/" title="Your Brand France">France</a> / </span> <span title="France"><a type="text/html" href="https://www.yourdomain.com/fr/en/" title="Your Brand France">France</a></span> </li>
<li> <span class="flag flag-hu" title="Hungary"></span> <span title="Hungary"><a type="text/html" href="https://www.yourdomain.com/hu/en/" title="Your Brand Hungary">Hungary</a></span> </li>
<li> <span class="flag flag-de" title="Germany"></span> <span title="Deutschland"><a type="text/html" href="https://www.yourdomain.com/de/de/" title="Your Brand Germany">Deutschland</a> / </span> <span title="Germany"><a type="text/html" href="https://www.yourdomain.com/de/en/" title="Your Brand Germany">Germany</a></span> </li>
<li> <span class="flag flag-gr" title="Greece"></span> <span title="Greece"><a type="text/html" href="https://www.yourdomain.com/gr/en/" title="Your Brand Greece">Greece</a></span> </li>
<li> <span class="flag flag-ie" title="Ireland"></span> <span title="Ireland"><a type="text/html" href="https://www.yourdomain.com/ie/en/" title="Your Brand Ireland">Ireland</a></span> </li>
</ul>
</div>
<div class="small-12 medium-6 columns">
<ul>
<li> <span class="flag flag-lv" title="Latvia"></span> <span title="Latvia"><a type="text/html" href="https://www.yourdomain.com/lv/en/" title="Your Brand Latvia">Latvia</a></span> </li>
<li> <span class="flag flag-lt" title="Lithuania"></span> <span title="Lithuania"><a type="text/html" href="https://www.yourdomain.com/lt/en/" title="Your Brand Lithuania">Lithuania</a></span> </li>
<li> <span class="flag flag-lu" title="Luxembourg"></span> <span title="Luxembourg"><a type="text/html" href="https://www.yourdomain.com/lu/en/" title="Your Brand Luxembourg">Luxembourg</a></span> </li>
<li> <span class="flag flag-nl" title="Netherlands"></span> <span title="Netherlands"><a type="text/html" href="https://www.yourdomain.com/nl/en/" title="Your Brand Netherlands">Netherlands</a></span> </li>
<li> <span class="flag flag-pl" title="Poland"></span> <span title="Poland"><a type="text/html" href="https://www.yourdomain.com/pl/en/" title="Your Brand Poland">Poland</a></span> </li>
<li> <span class="flag flag-pt" title="Portugal"></span> <span title="Portugal"><a type="text/html" href="https://www.yourdomain.com/pt/pt/" title="Your Brand Portugal">Portugal</a> / </span> <span title="Portugal"><a type="text/html" href="https://www.yourdomain.com/pt/en/" title="Your Brand Portugal">Portugal</a></span> </li>
<li> <span class="flag flag-ro" title="Romania"></span> <span title="Romania"><a type="text/html" href="https://www.yourdomain.com/ro/en/" title="Your Brand Romania">Romania</a></span> </li>
<li> <span class="flag flag-ru" title="Russia"></span> <span title="Россия"><a type="text/html" href="https://www.yourdomain.com/ru/ru/" title="Your Brand Russia">Россия</a> / </span> <span title="Russia"><a type="text/html" href="https://www.yourdomain.com/ru/en/" title="Your Brand Russia">Russia</a></span> </li>
<li> <span class="flag flag-sk" title="Slovakia"></span> <span title="Slovakia"><a type="text/html" href="https://www.yourdomain.com/sk/en/" title="Your Brand Slovakia">Slovakia</a></span> </li>
<li> <span class="flag flag-si" title="Slovenia"></span> <span title="Slovenia"><a type="text/html" href="https://www.yourdomain.com/si/en/" title="Your Brand Slovenia">Slovenia</a></span> </li>
<li> <span class="flag flag-ch" title="Switzerland"></span> <span title="Schweiz"><a type="text/html" href="https://www.yourdomain.com/ch/de/" title="Your Brand Switzerland">Schweiz</a> / </span> <span title="Svizzera"><a type="text/html" href="https://www.yourdomain.com/ch/it/" title="Your Brand Switzerland">Svizzera</a> / </span> <span title="Suisse"><a type="text/html" href="https://www.yourdomain.com/ch/fr/" title="Your Brand Switzerland">Suisse</a></span> </li>
<li> <span class="flag flag-es" title="Spain"></span> <span title="España"><a type="text/html" href="https://www.yourdomain.com/es/es/" title="Your Brand Spain">España</a> / </span> <span title="Spain"><a type="text/html" href="https://www.yourdomain.com/es/en/" title="Your Brand Spain">Spain</a></span> </li>
<li> <span class="flag flag-se" title="Sweden"></span> <span title="Sweden"><a type="text/html" href="https://www.yourdomain.com/se/en/" title="Your Brand Sweden">Sweden</a></span> </li>
<li> <span class="flag flag-gb" title="United Kingdom"></span> <span title="United Kingdom"><a type="text/html" href="https://www.yourdomain.com/gb/en/" title="Your Brand United Kingdom">United Kingdom</a></span> </li>
</ul>
</div>
</div>
</div>
<div class="small-12 medium-3 columns">
<h3>North America</h3>
<ul>
<li> <span class="flag flag-ca" title="Canada"></span> <span title="Canada"><a type="text/html" href="https://www.yourdomain.com/ca/fr/" title="Your Brand Canada">Canada</a> / </span> <span title="Canada"><a type="text/html" href="https://www.yourdomain.com/ca/en/" title="Your Brand Canada">Canada</a></span> </li>
<li> <span class="flag flag-us" title="United States"></span> <span title="United States"><a type="text/html" href="https://www.yourdomain.com/us/en/" title="Your Brand United States">United States</a> / </span> <span title="Estados Unidos"><a type="text/html" href="https://www.yourdomain.com/us/es/" title="Your Brand United States">Estados Unidos</a></span> </li>
</ul>
<h3>Asia Pacific</h3>
<ul>
<li> <span class="flag flag-jp" title="Japan"></span> <span title="日本"><a type="text/html" href="https://www.yourdomain.com/jp/ja/" title="Your Brand Japan">日本</a> / </span> <span title="Japan"><a type="text/html" href="https://www.yourdomain.com/jp/en/" title="Your Brand Japan">Japan</a></span> </li>
<li> <span class="flag flag-au" title="Australia"></span> <span title="Australia"><a type="text/html" href="https://www.yourdomain.com/au/en/" title="Your Brand Australia">Australia</a></span> </li>
<li> <span class="flag flag-nz" title="New Zealand"></span> <span title="New Zealand"><a type="text/html" href="https://www.yourdomain.com/nz/en/" title="Your Brand New Zealand">New Zealand</a></span> </li>
<li> <span class="flag flag-cn" title="China"></span> <span title="中国"><a type="text/html" href="https://www.yourdomain.com/cn/zh/" title="Your Brand China">中国</a> / </span> <span title="China"><a type="text/html" href="https://www.yourdomain.com/cn/en/" title="Your Brand China">China</a></span> </li>
</ul>
</div>
<div class="small-12 medium-3 columns">
<h3>International</h3>
<ul>
<li> <span class="flag flag-int" title="International"></span> <span title="International"><a type="text/html" href="https://www.yourdomain.com/int/en/" title="Your Brand International">International</a> / </span> <span title="国际化"><a type="text/html" href="https://www.yourdomain.com/int/cn/" title="Your Brand International">国际化</a></span> </li>
</ul>
</div>
</div>
<footer>
<div>Put something here</div>
</footer>
<script src="/assets/js/edgescape.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment