• Hi to all!!!
    (please excuse for my english…)
    i’ve created a landing page on my WP site where the user can make a choice about the city to view… all post in my site are separated geographically by city slug.
    When you make this choice, a cookie is written and inside the site all the queries have made using “meta_query” on “WP_query” to select post releated to the city, read from the cookie!!!
    All works well but… this solution generate this url structure
    http://www.mydomain.it/somestuff
    and do not modify the site url and i can not use cache plugins or seo improvements!!!
    i need this url structure:
    http://www.mydomain.it/city1/somestuff
    http://www.mydomain.it/city2/somestuff
    and the url must be rewrited AFTER the cookie was read. So, i need to read what city i’m in, and after move to url of that city…

    I’ve tried to add some custom WP rewrite rules but not work… i’ve read some post on WP rewrite rules tecniques but i can’t solve my problem… please help me!!!

  • The topic ‘rewrite rules after cookie read’ is closed to new replies.