sitemap URL generated wrong for 3 WPML homepages

#120138
  • Resolved Alexander
    Rank Math pro

    The plugin generates a page link in the sitemap which should not be there.

    Let’s say you have got 3 languages in your website, you create 3 pages and set them as the respective language homepage.
    You create the pages with some title as you can’t create a page in WordPress without a title, say, “Site.Com in German”, “Site.com in Nordic”, “Site.com in English” – and when you set each as Homepage, they become Site.com/en, site.com/nl, site.com/de

    From WP’s perspective, those are homepages. They don’t have their old titles anymore, they should not have their old Permalinks either.

    But your plugin disregards that – it still generates permalinks for the old page names and that can’t be fixed.

    This is a bug and should be fixed.

    If a page is set as the homepage in any WPML language, its permalink should be the respective permalink it actively has. Not its old one.

    Now, with your current set up, Google gets confused and creates a wrong URL in its index, not the actual permalink. This URL returns 404! and the language page gets penalized.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Rank Math usually handles adding the default language to your sitemap. Other languages are handled automatically by WPML by adding a hreflang into each page automatically.

    Depending on your translation settings in WPML, you may find all your sitemap URLs in a single sitemap file or different URLs.

    Please go through the guide here they have on the topic:

    https://wpml.org/documentation/plugins-compatibility/optimize-multilingual-websites-using-rank-math-and-wpml/

    In your case, if you check the translated version of the sitemap(https://atlantsecurity.com/ru/page-sitemap.xml), you will not find the page specified for homepage as it’s own permalink. It however seems to appear in the default language as a page(which it is)except it is redirected to your translated homepage. You can see that using this tool: http://redirectcheck.com/index.php

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘sitemap URL generated wrong for 3 WPML homepages’ is closed to new replies.