Custom Redirects

Custom Redirects

The Custom Redirects module provides an easy to use interface for keeping your users out of the WordPress dashboard or to redirect them after specific actions.

Redirect users to the URLs you want:

  • After Login
  • After Logout
  • After Registration
  • After Edit Profile
  • After Successful Email Confirmation
  • After Successful Password Reset
  • Dashboard (redirect users from accessing the dashboard)

Apply redirects on default WordPress pages:

  • Login ( wp_login.php )
  • Register ( wp-login.php?action=register )
  • Lost Password ( wp-login.php?action=lostpassword )
  • Author Archive ( http://sitename.com/author/admin )

pbcr111

Activating the Custom Redirects module

In order to activate the Custom Redirects module, go to the Modules tab, and under Custom Redirects status select Active. Then click Save Changes.

cr8

After this a new Custom Redirects tab will show up in the Profile Builder admin interface.

Redirects Priority

  1. Individual User Redirects
  2. User Role based Redirects
  3. Global Redirects
  4. Individual redirects defined in shortcodes or in the Multiple Registration and Edit Profile form settings. (redirect_priority=”top” paramenter can be added in any shortcode, then that shortcode redirect will have priority over all other redirects)

Individual redirects defined in shortcodes

You can define redirects in shortcodes or in the Multiple Registration and Edit Profile form settings with redirect_url=”www.yoursite.com” paramenter in the shortcode.

Individual User Redirects

With Individual User Redirects you can create redirects based on username or user id.

cr2

For example, after login, you can redirect user test in one place and user test2 in another place.

User Role based Redirects

With User Role based Redirects you can create redirects based on user role.

cr3

For example, Subscribers will be redirected but Authors won’t be.

Global Redirects

With Global Redirects you can redirect all users on some specific link.

cr4

Redirect Default WordPress forms and pages

These redirects are applied on default WordPress page requests.

cr5

Using this you can keep your users out of the WordPress admin interface, and redirect them to the front-end forms created with Profile Builder.

Available tags for dynamic URLs

You use the following tags in your URLs to redirect users to various pages.

  • {{homeurl}} – generates a url of the current website homepage.
  • {{siteurl}} – in WordPress the site url can be different then the home url
  • {{user_id}} – the ID of the user
  • {{user_nicename}} – the URL sanitized version of the username, the user nicename can be safely used in URLs since it can’t contain special characters or spaces.
  • {{http_referer}} – the URL of the previously visited page