That is the way it is in the Republic of Illinois! Some towns ban handguns, some ban long guns and some ban them all!
It's been awhile since you've lived in IL, please don't spread outdated and incorrect information. Please see McDonald v Chicago. Might also help to check out District of Columbia v Heller.