Configuring Redirection

After you have installed the extension, you must configure it. You can find the Redirection settings under Theme My Login → Redirection.

Redirection Rules

Redirection works by creating rules which can be applied to one or more user roles. Each rule has multiple settings, outlined below.

Title

The title of the rule. This is purely used for admin display purposes, to help identify your rules.

Log In

The type of redirection to be used upon login with this rule applied. The following options are available:

  • Default
    This option changes nothing. The default login redirect will remain intact, which is usually /wp-admin.
  • Referer
    This option will send the user back to where they came from before they attempted to log in. Note that this setting does not work in all circumstances. For instance, if a user just came from clicking the a link in their email, there would be no HTTP referer. In such instances, the default redirect would be used.
  • Custom
    This option will allow you to enter a custom URL to redirect to. There are also two variables available to use with this setting:
    • %user_id%
      The ID of the current user.
    • %user_nicename%
      The URL-friendly version of the current username.

Log Out

The type of redirection to be used upon logout with this rule applied. The following options are available:

  • Default
    This option changes nothing. The default login redirect will remain intact, which is usually back to the login page with a notice telling the user they have successfully logged out.
  • Referer
    This option will send the user back to where they came from before they logged out. Note that this setting does not work in all circumstances. For instance, if a user attempts to log out from within the Dashboard, they would be redirected to the login page since they are no longer authorized to be in the Dashboard.
  • Custom
    This option will allow you to enter a custom URL to redirect to. There are also two variables available to use with this setting:
    • %user_id%
      The ID of the current user.
    • %user_nicename%
      The URL-friendly version of the current username.