• Resolved Zeliha Canderengul

    (@zelihacanderengul)


    my website has 2 languages. main language is on ozmyo.com. the other language is in the en.ozmyo.com subdomain. I am using Polylang plugin to make my website bilingual. The URLs required for other English language are not shown in the sitemap of my website’s main domain.

    for example:

    The alternative language page for websitem.com/post-page is en.websitem.com/text-page. I would like to see these two links in the sitemap. how can i fix this.

    So I hope it goes like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"
      xmlns:xhtml="https://www.w3.org/1999/xhtml">
      <url>
        <loc>https://www.example.com/english/page.html</loc>
        <xhtml:link
                   rel="alternate"
                   hreflang="de"
                   href="https://www.example.com/deutsch/page.html"/>
        <xhtml:link
                   rel="alternate"
                   hreflang="de-ch"
                   href="https://www.example.com/schweiz-deutsch/page.html"/>
        <xhtml:link
                   rel="alternate"
                   hreflang="en"
                   href="https://www.example.com/english/page.html"/>
      </url>
    </urlset>

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @zelihacanderengul,

    We checked your site and we found sitemaps for each language: Turkish sitemap and English sitemap. If you can confirm that all your published posts appear in these separate sitemaps, you do not need to change the Yoast sitemaps.

    We confirmed that the translated pages already contain the hreflang pointing to the other versions, so it’s not necessary to set the hreflang again in the sitemaps.

    If you’d like to submit each language’s sitemap to search engines, we have more details in this guide: Submit Your Sitemap To Search Engines.

    If you do want to change the format for the sitemaps, you can take a look at the Yoast sitemap developer documentation or contact the Polylang support to find out if there is already a solution.

    We are going ahead and mark this topic as resolved due to inactivity. If you require any further assistance, feel free to create a new topic. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can I add an alternate URL to the sitemap for a multi-language website?’ is closed to new replies.