ref
From where + ever
wherever (adv.)
"at whatever place," late 13c., ware euere, from where + ever. Originally an emphatic extension of where. Meaning "at any place, at some place or another" is from 1660s.