• I have two versions of my site in different territories.

    I’d like new users to see a splash page, with a choice of URL A or URL B.

    Once this choice is made, a cookie is set, and the next time the user vista, the cookie redirects to their previously chosen URL.

    any help for a relative noob on this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You need to get the contents of the cookie from the request before WordPress sends any output to the response. At that point you can use wp-redirect to redirect the user to the desired site. You can use the “init” action to hook in before output is sent.

    You may be better off to use plain php to build the splash page and do the redirects.

    Note that duplicate content isn’t good for SEO, so you should be sure to flag one copy as the canonical version for any duplicate content.

    Hey buddy,
    I’m also looking for the same kind of stuff.

    You get for what you looking for?

    Please share.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect with cookie’ is closed to new replies.