Can I add an alternate URL to the sitemap for a multi-language website?
-
my website has 2 languages. main language is on ozmyo.com. the other language is in the en.ozmyo.com subdomain. I am using Polylang plugin to make my website bilingual. The URLs required for other English language are not shown in the sitemap of my website’s main domain.
for example:
The alternative language page for websitem.com/post-page is en.websitem.com/text-page. I would like to see these two links in the sitemap. how can i fix this.
So I hope it goes like this:
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="https://www.w3.org/1999/xhtml"> <url> <loc>https://www.example.com/english/page.html</loc> <xhtml:link rel="alternate" hreflang="de" href="https://www.example.com/deutsch/page.html"/> <xhtml:link rel="alternate" hreflang="de-ch" href="https://www.example.com/schweiz-deutsch/page.html"/> <xhtml:link rel="alternate" hreflang="en" href="https://www.example.com/english/page.html"/> </url> </urlset>
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Can I add an alternate URL to the sitemap for a multi-language website?’ is closed to new replies.