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.

  • four
    > I do not know how to implement a change in the address of the main page Is this a question? header ("Location: / region"); - Shevsky
  • Yes, that was the question. But did not understand the answer) - euqen
  • WordPress engine. And samopisny poorly done? - atnartur
  • And actually what are you driving at? Yes, weak. - euqen

1 answer 1

Maybe so clearer? : D I do not see the problem.

<?php header("Location: /region"); ?> 
  • Add Thank you very much. - euqen