- Status
- Resolved
- Resolved in
- WPML SEO 2.0
- Related plugin/theme
- Rank Math SEO
Overview of the issue
Rank Math SEO users have reported seeing incorrect entries for their secondary homepages in their sitemap `/page_sitemap.xml`.
For example, if your default homepage has the slug homepage and the translations are homepage-fr, homepage-it, then the sitemap shows:
- https://www.examplesite.com/ (which is correct)
- https://www.examplesite.com/fr/homepage-fr (incorrect as it should be https://www.examplesite.com/fr/)
- https://www.examplesite.com/it/homepage-it (incorrect as it should be https://www.examplesite.com/it/)
This should not adversely affect your SEO as WPML adds 301 redirects to these pages, and `alternate` tags on the homepage tell crawlers where the secondary language homepages can be found.
Workaround
For full compatibility with Rank Math including a solution to this issue, make sure to install and activate the WPML SEO glue plugin.