Iran is actually relatively unique in the developed world in that their urban population is about as conservative as the population as a whole (Japan is another example IIRC). There is nuance here (most of the conservative urban population is concentrated in certain cities and neighborhoods) but the urban/rural divide does not explain the political divide.