Skip to content

Instantly share code, notes, and snippets.

@franciscolopezsanchez
Last active May 8, 2020 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franciscolopezsanchez/02f099ac064ccfff7ce6accb5477b138 to your computer and use it in GitHub Desktop.
Save franciscolopezsanchez/02f099ac064ccfff7ce6accb5477b138 to your computer and use it in GitHub Desktop.

Sitemap

<url>
  <loc>https://www.femtasy.com/sign-in</loc>
  <lastmod>2018-06-14T09:11:32+00:00</lastmod>
  <priority>0.80</priority>
</url>
  • How we need to change each of the urls to have an alternate link to each language we support and to itself:

      <url>
          <loc>https://www.femtasy.com/en-GB/</loc>
          <xhtml:link rel="alternate" hreflang="en-GB" href="https://www.femtasy.com/en-GB/"/>
          <xhtml:link rel="alternate" hreflang="de" href="https://www.femtasy.com/de/"/>
          <lastmod>2018-06-14T09:11:32+00:00</lastmod>
          <priority>0.80</priority>
      </url>
    
      <url>
          <loc>https://www.femtasy.com/de/</loc>
          <xhtml:link rel="alternate" hreflang="en-GB" href="https://www.femtasy.com/en-GB/"/>
          <xhtml:link rel="alternate" hreflang="de" href="https://www.femtasy.com/de/"/>
          <lastmod>2018-06-14T09:11:32+00:00</lastmod>
          <priority>0.80</priority>
      </url>
  • We can use a html template generator for managing the addition and removal of URLs and languages. Example: jsbin
  • We will need to upload the new sitemap in Google Search console.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment