Ware refers to goods for sale, as in traders came from miles around to sell their ware. Where asks about or points to a place, as in where do you live? If you mean a location, it is where; if you mean goods, it is ware.
The core difference
Ware is a noun for goods made for sale, while where is a word about location.
- ware — goods made for sale, especially pottery or manufactured items: the potter laid out her ware on a blanket at the market.
- where — used to ask about or refer to a place: I forgot where I put my keys.
How to tell them apart
A useful check: where contains the word here, both about place. Ware, on the other hand, shows up in compound words like hardware and tableware, always about goods, not location.
The mix-up crops up most in shop and market writing, where wares for sale can be typed as wheres, or in directions, where someone asks the ware to something instead of the where.