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 Commented Jan 27, 2014 at 18:02
  • yes thats a problem, geolocation works well for countries and languages but cites?? How would I do that accuratly :( Commented Jan 27, 2014 at 18:11
  • have a look here. stackoverflow.com/questions/16202077/… not sure but this maybe something to look into Commented Jan 27, 2014 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, Commented Jan 27, 2014 at 18:17
  • 1
    See my answer here: webmasters.stackexchange.com/questions/49627/…
    – dan
    Commented Jan 27, 2014 at 18:18

1 Answer 1


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 and acknowledge you have read our privacy policy.

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