D
D
Daniil Chepenko2015-10-23 15:56:48
WordPress
Daniil Chepenko, 2015-10-23 15:56:48

How to make a redirect to another page on re-entry?

The site has a landing page and a content page. The site is planted on Wordpress
Now the start page is a landing page
. It is necessary that the user, when re-entering, does not get to the landing page, but to the page with content. The user is not registered anywhere.
Are there any WP plugins that will be able to do this?
Or do you have to write it yourself?
If by yourself, what would you recommend to study?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
neeil, 2015-10-23
@neeil

It is necessary to write a cookie to users who come in setcookie("TestCookie", $value); above the cookie entry, write the condition if($_COOKIE['TestCookie'] == $value){wp_redirect('url',301);}
that's it!)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question