Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 169539

Conditional redirect

$
0
0

Replies: 0

Hi there, thanks for the awesome plugin 🙂

How can i set it up so that i have a set page redirect on login when visiting the normal login page without a referrer string, yet if they try to visit any other specific page, the referrer string works and it bypasses the normal redirect?

Example of desired behavior (where “>” is a redirect):

site.com/login > site.com/welcome
site.com/page > site.com/login/?redirect_to=site.com%2Fpage > site.com/page

I know how to get either one of these working, but how can I combine them? I’m still a php rookie, so any help would be greatly appreciated 🙂


Viewing all articles
Browse latest Browse all 169539