Cookie Redirect? | WordPress.org

[ad_1]

I see it in the description, but I am missing the how. Are there any examples of using cookie values to do redirections?

Basically if cookie x exists, grab the current URL, grab the cookie value and add it to the end as the “last page”.

Example: mywebsite.com/product

Cookie value: newyork

Redirection: mywebsite.com/product/newyork

Possible?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer