• Resolved flaschenzug22

    (@flaschenzug22)


    I like to add the translated pages to the xml sitemap.

    I am translating the webpage without any plugins, I just work with redirects and deepl. So wordpress does NOT add a new post for a translated post e.g.

    Is there an easy way, to add other languages to every page in the sitemaps?

    For example:
    website.com/page1/
    website.com/page2/
    website.com/category/
    website.com/category/post1/

    sitemap should be extended by:
    website.com/it/page1/
    website.com/it/page2/
    website.com/it/category/
    website.com/it/category/post1/

    I was hoping to find a solution in the XML Sitemap API Documentation: https://developer.yoast.com/features/xml-sitemaps/api/ but had no success.

    Thanks a lot!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello Flaschenzug,

    Thanks for reaching out regarding your translated pages.

    If the translated versions of a page are separate pages in WordPress themselves they should be added to the sitemap automatically. But looking at the example you provided, it seems /it/ is a subfolder having a separate WordPress installation. Is that correct? You also mentioned using redirects. Are redirects from the main language (website.com/page1/) to the translated version (website.com/it/page1/)? How are the redirects created?

    And by the way, the Yoast SEO plugin does not have a way to parse out different sitemaps for different languages because Google does not require it. We add all the languages to the same sitemap. So all posts (regardless of language) will appear on the post sitemap and the same happens for any other post type. Doing it this way is not expected to hurt the SEO or how Google crawls your site.

    Thread Starter flaschenzug22

    (@flaschenzug22)

    Thanks for your reply and your help.

    It is the same wordpress installation and there is NO NEW POST for the translations.

    The language folder is just added via rewrite rules and PHP, but points internally to the same page as the site without /it/ does.

    Posts are translated automatically.

    And by the way, the Yoast SEO plugin does not have a way to parse out different sitemaps for different languages because Google does not require it. We add all the languages to the same sitemap. So all posts (regardless of language) will appear on the post sitemap and the same happens for any other post type. Doing it this way is not expected to hurt the SEO or how Google crawls your site.

    It would be fine for me, to add the translated pages to the existing sitemaps.
    But I have no idea how to accomplish that.

    Plugin Support Maybellyne

    (@maybellyne)

    Thanks for the clarification.

    You mentioned that there is only one WordPress installation but there is another folder for the translated language added via rewrite rules and PHP. Then, there is no feature in the Yoast SEO to add such translations to the existing sitemap.

    This documentation provides technical information about how Yoast SEO generates and/or manages XML sitemaps. You may find some pointers in there.

    Thread Starter flaschenzug22

    (@flaschenzug22)

    Thanks :-). I will check the documentation and let you know, if i find something.
    If not, I have to let google do the work (and find the pages without the sitemaps).

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add pages with other languages to sitemap’ is closed to new replies.