I know that I can use hreflang for country specific content in order to avoid duplicate content, but what about city or state specific content?

Is that possible, and if not, how do I deal with it?

  • I think for city specific content you may need to look into geolocating, however the issue would be as to how accurate the data would be as going purely on ip address would be a bad idea – Liam Sorsby Jan 27 '14 at 18:02
  • yes thats a problem, geolocation works well for countries and languages but cites?? How would I do that accuratly :( – user1721135 Jan 27 '14 at 18:11
  • have a look here. stackoverflow.com/questions/16202077/… not sure but this maybe something to look into – Liam Sorsby Jan 27 '14 at 18:14
  • yes i was thinking about that, geolocation might be the way to go, however that requires user permission. as for gps im mainly after desktop users with this. thanks for the link though, – user1721135 Jan 27 '14 at 18:17
  • 1
    See my answer here: webmasters.stackexchange.com/questions/49627/… – dan Jan 27 '14 at 18:18

rel="alternate" hreflang="x" annotations cannot be used to specify a city, or any other geographical content other than the Language and region:

hreflang supported values

The value of the hreflang attribute identifies the language (in ISO 639-1 format) and optionally the region (in ISO 3166-1 Alpha 2 format) of an alternate URL. For example:

I doubt it ever will either, as it doesn't really make sense to have duplicate content on your city specific pages, Google would want you to make them unique. You should make your city specific pages unique to that city, adding some info about the city and write about your location in that city. (e.g, if you were a franchise store, write about that particulars stores history)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.