Incorrect Sitemap Generation on Both Domains with WPML (Different Domain per Lan

#1103455
  • Ali Niyazi
    Rank Math free

    Hello Rank Math Support Team,

    I am using Rank Math Pro and am experiencing a persistent, systemic issue with my sitemap generation in a multilingual setup with WPML. The issue affects both of my domains.

    My Environment:

    Setup: WPML’s “A different domain per language” option.

    Primary Language: English, served from a .com domain.

    Secondary Language: Persian, served from a .ir domain.

    The Problem:
    Both sitemaps for my primary English (.com) and secondary Persian (.ir) domains are being generated incorrectly.

    English (.com) Sitemap:

    It includes duplicate URLs for its own English pages.

    It incorrectly includes the homepage URL of the Persian (.ir) domain.

    Persian (.ir) Sitemap:

    It also includes duplicate URLs for its own Persian pages (including the homepage).

    Troubleshooting Steps Already Taken:
    I have already performed extensive troubleshooting to resolve this without success, including:

    Ensuring the WPML SEO bridge plugin is installed and active.

    Verifying that my WPML settings for “A different domain per language” are correctly configured.

    Removing any dynamic WP_HOME/WP_SITEURL definitions from my wp-config.php file.

    Repeatedly clearing the Rank Math transients and forcing the sitemap to regenerate.

    Clearing all website, server, and browser caches.

    Disconnecting and reconnecting page translations within WPML to reset their database relationship.

    Despite all these steps, the sitemaps on both domains continue to be generated with the same errors. This appears to be a deeper conflict or bug beyond standard configuration.

    Could you please assist me in diagnosing and resolving this issue? I am happy to provide temporary admin access to the site if needed.

    Thank you for your time and assistance.

    Best regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    We apologize for the issue you are facing with the sitemap generation in your multilingual setup with WPML. Thank you for providing detailed information about your environment and the troubleshooting steps you’ve already taken.

    Given that you are using the "A different domain per language" option, there are specific considerations to ensure that the sitemaps are generated correctly. Here are a few suggestions that might help resolve the issue:

    1. Check WPML Settings: Ensure that the WPML settings for each language are correctly configured, especially the URL format settings for each domain.

    2. Sitemap Configuration: Since you are using different domains, make sure that the sitemap settings in Rank Math are set to recognize these domains correctly. You can check this under Rank Math > Sitemap Settings.

    3. Custom Code: If the issue persists, you may need to add custom code to filter the sitemap entries for each language. This can help prevent incorrect URLs from being included. You can refer to our documentation on Multilingual SEO with Rank Math and WPML for guidance on implementing such filters.

    4. Debugging: If you have access to error logs, check for any errors related to sitemap generation or WPML conflicts that might provide more insight into the issue.

    5. Backup and Test: Before making any changes, ensure you have a backup of your site. You can also try temporarily disabling other plugins to see if there is a conflict affecting the sitemap generation.

    If these steps do not resolve the issue, we recommend replying to this ticket with your site URL and any additional details, and a human agent from our support team will take over and assist you further.

    Thank you for your patience, and we look forward to helping you resolve this issue!

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    Ali Niyazi
    Rank Math free

    Hello,

    Just a polite follow-up on this support ticket.

    I am still experiencing the sitemap generation issue and am looking forward to hearing from a support agent for further assistance.

    Could you please provide a quick update on the status of my request?

    Thank you for your time.

    Best regards,

    Hello Rank Math Support Team,

    I am using Rank Math Pro and am experiencing a persistent, systemic issue with my sitemap generation in a multilingual setup with WPML. The issue affects both of my domains.

    My Environment:

    Setup: WPML’s “A different domain per language” option.

    Primary Language: English, served from a .com domain.

    Secondary Language: Persian, served from a .ir domain.

    The Problem:
    Both sitemaps for my primary English (.com) and secondary Persian (.ir) domains are being generated incorrectly.

    English (.com) Sitemap:

    It includes duplicate URLs for its own English pages.

    It incorrectly includes the homepage URL of the Persian (.ir) domain.

    Persian (.ir) Sitemap:

    It also includes duplicate URLs for its own Persian pages (including the homepage).

    Troubleshooting Steps Already Taken:
    I have already performed extensive troubleshooting to resolve this without success, including:

    Ensuring the WPML SEO bridge plugin is installed and active.

    Verifying that my WPML settings for “A different domain per language” are correctly configured.

    Removing any dynamic WP_HOME/WP_SITEURL definitions from my wp-config.php file.

    Repeatedly clearing the Rank Math transients and forcing the sitemap to regenerate.

    Clearing all website, server, and browser caches.

    Disconnecting and reconnecting page translations within WPML to reset their database relationship.

    Despite all these steps, the sitemaps on both domains continue to be generated with the same errors. This appears to be a deeper conflict or bug beyond standard configuration.

    Could you please assist me in diagnosing and resolving this issue? I am happy to provide temporary admin access to the site if needed.

    Thank you for your time and assistance.

    Best regards,

    Hello,

    Thank you for contacting Rank Math support, and sorry for the unexpected delays and any inconvenience that might have been caused due to that.

    Please note that Rank Math only generates the sitemap for the default/primary language, while the additional language information is handled directly by WPML.

    Please make sure your WPML setup is correctly configured by following this guide: https://rankmath.com/kb/multilingual-seo-wpml/

    Also, kindly ensure that you’re running the latest version of Rank Math: https://rankmath.com/changelog/

    If the issue persists after checking these, please let us know and we’ll be glad to help further.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this ticket.