Help a newbie. Required to implement on the site the choice of the region. Ie, the user clicks on the link, pops up a modal window and selects a region. Also, after the user selects a region, he should be saved via a cookie and the main page should change the address to: mypage.ru/region/. And there must be such a whole life of the cook.
I set up remembering the region, but I don’t know how to implement a change in the address of the main page. Tell me how to implement. WordPress engine.