Skip to main content
7 events
when toggle format what by license comment
Oct 24, 2018 at 12:16 history edited John Could CC BY-SA 4.0
Including more information about the question
Oct 24, 2018 at 10:30 vote accept Adam
Oct 24, 2018 at 8:47 comment added John Could Exactly if you dont use the sitemap to declare your alternative language then just put this: <loc>example.com/about</loc>
Oct 24, 2018 at 8:43 comment added Adam Yeah sorry was unclear. What I meant is, you say its enough to put <loc>example.com/about</loc> in the sitemap and there is no need to put <loc>example.com/fr/about</loc> and <loc>example.com/about</loc> together in the sidemap -right? This would be the opposite of what Σπύρος Γούλας said.
Oct 24, 2018 at 8:39 comment added John Could No, <loc> is a required tag for sitemaps you have to include that i may misunderstand your question sorry is morning over here :) If you are asking which version to include in <loc> then you must include your desired version it doesnt really make any difference i personally usually use the "en" or "x-default" - When Google is going through a website it visits first the robots.txt (where sitemap is declared) so it will return the correct hreflang no matter what you include in <loc>
Oct 24, 2018 at 8:33 comment added Adam So if use the head method you would not put <loc>example.com/fr/about</loc> into the sitemap? So you basically saying the opposite as Σπύρος Γούλας :D?
Oct 24, 2018 at 8:29 history answered John Could CC BY-SA 4.0