WordPress redirection refers to a technique that sends users from a webpage to a different location. For example, you can redirect your users to another page if the existing page is unavailable. Another pretty good reason to use redirects is to redirect users after they log in to your Website WordPress so that they reach a page of your choice instead of the WordPress dashboard. In this tutorial, we'll show you how to do just that.

Why should you redirect users after login?

Every site owner redirects their users after logins for several reasons. Some don't want logged in users to access the dashboard. Others would like their users with specific roles to access a contents particular.

# 1 Protect your administrator dashboard

WordPress sends users to the admin dashboard after logging in by default. There will be no problem if only primary users like administrators or editors need to access the administration area of ​​the site.

If there are many types of users on your site, redirect them to other pages after logging in. This helps prevent unauthorized users from modifying or making changes to the contents Of your site.

Additionally, you can also redirect users to an alternative dashboard designed especially for them.

# 2 create user role specific content

You create a Website private and offer contents premium for different user roles. Each type of user can access certain pages and posts.

For example, new subscribers should see the ads or policy pages before visiting other posts on your site. Customers, on the other hand, are redirected to the store pages right after they log into your ecommerce site.

For some password protected websites, each user with a different password can be sent to a separate page after the site has been unlocked.

Redirect users after login using Peter's Login Redirection plugin

Peter's connection redirection proves to be one of the most effective plugins to help you decide what users will see after they log in to your Website. You can set redirection rules for all users as well as certain users or user roles.

Follow these 4 simple steps to easily install and activate the plugin:

1. Go to the plugins → Add new in your WordPress dashboard

Wordpress plugin installation


2. Type "Peter login" in the keyword box

3. Click on Installer et activate

Peter redirect wordpress login

4. Visit the login / logout redirects under Settings in your WordPress sidebar

There is a settings page allowing you to manage redirect rules now. The plugin offers 5 different types of connection redirects. Besides letting you send specific users or user roles to another page, it also lets you set redirect rules for different user levels. Those that do not belong to the rules you have already set will apply the rule All other users .

You can fill in the fields URL et URL of Logout with the URL of the page users can see first. There is also an Add New button under each section allowing you to create new rules.

Login redirect settings

Redirect users after unlocking protected sites with the PPWP Pro plugin

Password protect entire wordpress site

Password Protect WordPress provides one of the best solutions to protect your entire website. Not only can you secure all the content on your site with multiple passwords, but you can also assign a redirect page or posts for each password.

When users enter a specific password and unlock your WordPress website, they will be immediately redirected to a certain page corresponding to that password.

To use the plugin to redirect users after entering passwords, you must:

1. Download the Word Protect Pro plugin for Password Protect

2. Go to Plugins → Add new in your WordPress sidebar

Add a wordpress extension

3. Click on Upload Plugin and choose the zip file you just downloaded

upload a wordpress extension

4. Visit the plugin's settings page and navigate to the tab Entire site

5. Activate the password protection of the whole site and enter as many passwords as you want to protect the website.

6. Toggle the option of redirection and enter the URL of the redirect page next to each password

Configure password protect

To take an example, a teacher provides learning materials for students on their private website. Students in each class can access a different document. Instead of creating user accounts and roles for each student which is time consuming, it can protect the whole site with multiple passwords and set a redirected URL for each password. Once students enter the correct password, they will be automatically redirected to a certain page.

This plugin is handy for reducing the login process. You don't have to create a lot of roles and accounts for your users. They don't need to enter both emails or usernames and passwords when trying to access your site.

Conclusion

There are a number of plugins that allow you to decide what users will see after a successful login. You can use Peters Login redirect to redirect users based on their roles and access levels. Password Protect WordPress Pro, on the other hand, is an ideal solution to protect your entire WordPress website with passwords and redirect users to specific pages after entering the correct passwords.