Page Security & Membership
[Plugin: Page Security by Contexture] Controlling redirect upon login (2 posts)

  1. EfremJ
    Posted 3 years ago #


    Where can I control where users get redirected to once they log in?

    I simply want them to go to my home page, not to one of my latest posts or to a specific Page. Just want them to go to the main home page of my site.



  2. Matt van Andel
    Plugin Author

    Posted 2 years ago #

    There's a simple trick that can be used in vanilla WordPress to do exactly this.

    Simply add a ?redirect_to=%2F querystring variable to your login links and users will be automatically be redirected to the homepage when they log in.

    Example (put this in your href):


    Note: %2F is the url-encoded version of / (forward-slash). If you have bigger urls, you can encode them with online tools like this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Page Security & Membership
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic