How should I approach sitemap.xml, hreflang and regions for my website

by travo   Last Updated April 09, 2015 19:01 PM

I am a developer on a large site which regionally targets some content with a specific url. Is it technically correct to target the countries in those regions in the sitemap.xml and point them to the regional url?

In a region like North America there are two or three countries that could be serviced by an alternate hreflang's (Canada, USA) but point to a common url:

For example;

  <xml:link rel="alternate" hreflang="en-ca" href="" />
  <xml:link rel="alternate" hreflang="en-us" href="" />
  <xml:link rel="alternate" hreflang="en-gb" href="" />

Is this appropriate? I want to ensure that visitors from Canada know that there is regional content that is appropriate for them (despite the unfortunate regional directory name — 'us' rather than 'north-america'). Of course, I also want Google know that there is content for that locale as well.

Thanks in advance.

Answers 1

Yes, it's correct to target the countries in the sitemap.xml and point them to the regional url.

And yes, you can use the same URL for multiple locations.

You might want to simplify it here though, and use /us/ for "en" (all English variations that aren't otherwise specified) and /uk/ for "en-gb" (just English in Great Britain).

If possible, use the more generic versions of the hreflang values, since that lets those URLs to be used broader. You might even consider using "x-default" here, if that's your global preference. You can also use the same URL for x-default & a more specific variation too.

March 23, 2015 05:27 AM

Related Questions

Updated March 04, 2016 01:01 AM

Updated June 10, 2015 12:01 PM

Updated May 27, 2015 21:01 PM

Updated December 10, 2016 08:01 AM