-
Hi, I would like to know if it’s possible to edit and customize my sitemap to match the following structure:
<url>
<loc>http://www.example.com/english/</loc>
<xhtml:link rel="alternate" hreflang="de" href="http://www.example.com/deutsch/"/>
<xhtml:link rel="alternate" hreflang="de-ch" href="http://www.example.com/schweiz-deutsch/"/>
<xhtml:link rel="alternate" hreflang="en" href="http://www.example.com/english/"/>
</url>
<url>
<loc>http://www.example.com/deutsch/</loc>
<xhtml:link rel="alternate" hreflang="en" href="http://www.example.com/english/"/>
<xhtml:link rel="alternate" hreflang="de-ch" href="http://www.example.com/schweiz-deutsch/"/>
<xhtml:link rel="alternate" hreflang="de" href="http://www.example.com/deutsch/"/>
</url>
<url>
<loc>http://www.example.com/schweiz-deutsch/</loc>
<xhtml:link rel="alternate" hreflang="de" href="http://www.example.com/deutsch/"/>
<xhtml:link rel="alternate" hreflang="en" href="http://www.example.com/english/"/>
<xhtml:link rel="alternate" hreflang="de-ch" href="http://www.example.com/schweiz-deutsch/"/>
</url>
Is this possible? I need each URL loc to refer to the alternate translation and each one to have a tag with the hreflang to the region location.
Please, let me know if this is possible using RankMath or if it’s only possible using manual code insertion.
Regards,
Geraldo
The ticket ‘Customize Sitemap Markup structure’ is closed to new replies.