• Resolved OLUYOD

    (@yajiang1818)


    TranslatePress will add multi-language entries to the sitemap.xml generated by Yoast. How can I remove the multi-language entries?

    For example, the generated one is:

    <loc>https://abcdefg.com/blog</loc>
    <lastmod>2024-08-20T05:05:11+00:00</lastmod>
    <xhtml:link rel="alternate" hreflang="ja" />
    <xhtml:link rel="alternate" hreflang="en" />
    </url>
    <url>
    <loc>https://abcdefg.com/jp/blog</loc>
    <lastmod>2024-08-20T05:05:11+00:00</lastmod>
    <xhtml:link rel="alternate" hreflang="ja" />
    <xhtml:link rel="alternate" hreflang="en" />
    </url>

    But what I want is:

    <loc>https://abcdefg.com/blog</loc>
    <lastmod>2024-08-20T05:05:11+00:00</lastmod>
    <xhtml:link rel="alternate" hreflang="ja" />
    <xhtml:link rel="alternate" hreflang="en" />
    </url>

    I think https://abcdefg.com/jp/blog is not necessary.

Viewing 1 replies (of 1 total)
  • Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    First, I want to to point our that sitemap translation is part of our pro features, and Wp.org prohibits discussions about these kinds of stuff.

    However, I’ll provide some general information on the topic. Sitemap translation intentionally only works on the default language and not others. The accessible sitemap without a directory, such as (example.com/sitemap_index.xml), includes sitemaps for all languages.

    If you don’t what the additional language links to be in your sitemap, you can check the Exclude translated links from sitemap option from TP Settings –> Advanced tab –> Miscellaneous section.


    Kind Regards,

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.