How to exclude certain URLs from multilingual entries in sitemap
-
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)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.