WordPress.org

Ready to get started?Download WordPress

Forums

Peter's Login Redirect
Redirect to 1 of 2 pages depending on referring page? (2 posts)

  1. nicolaelvin
    Member
    Posted 1 year ago #

    I have a page that has links on it to login. This is the Events page. If the users clicks this link on the events page, I want them to be taken to the login page, and the login page then redirected BACK to the Events page. However for all other logins I want them to be redirected after login to the homepage.

    Is this possible?

    http://wordpress.org/extend/plugins/peters-login-redirect/

  2. Peter
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, you could actually use built-in WordPress functionality to achieve this by making the Events page link to the login page via a URL such as:

    http://yoursite.com/wp-login.php?redirect_to=http://yoursite.com/eventspage

    In short, you can use a "redirect_to" GET variable to specify an exact redirect URL.

    There are many other ways to approach this, as outlined here:

    http://www.theblog.ca/wplogin-redirect#comment-11089

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.