Groups 404 Redirect

Description

This plugin redirects 404’s caused by hits on pages that are protected by Groups.

The redirection settings can be adjusted in Settings > Groups 404 :

Visits to protected pages can be redirected to:

  • a specific post, or
  • the WordPress login

The redirection can also be applied for restricted categories, tags and other taxonomy terms if Groups Restrict Categories is used.

The redirect status code can be selected among:

  • Moved Permanently (301)
  • Found (302)
  • See other (303)
  • Temporary Redirect (307)

Screenshots

  • Groups 404 Redirect settings.

Installation

  1. Upload or extract the groups-404-redirect folder to your site’s /wp-content/plugins/ directory. You can also use the Add new option found in the Plugins menu in WordPress.
  2. Enable the plugin from the Plugins menu in WordPress.
  3. Go to Settings > Groups 404 and adjust the redirection settings as desired.

FAQ

Installation Instructions
  1. Upload or extract the groups-404-redirect folder to your site’s /wp-content/plugins/ directory. You can also use the Add new option found in the Plugins menu in WordPress.
  2. Enable the plugin from the Plugins menu in WordPress.
  3. Go to Settings > Groups 404 and adjust the redirection settings as desired.
What do the status codes mean?

Read the section on Status Code Definitions in RFC 2616.

I have a question, where do I ask?

You can leave a comment at the Groups 404 Redirect plugin page.

Reviews

Works perfectly

I was getting redirect loops from non-authorized users trying to access restricted woocommerce pages… installed this plugin and set the option to redirecto the login page… and *BOOM* it works perfectly. Very groovy and simple plugin.

Works like a charm

Fast and easy to set up and works as it should. I made a new page saying “You don’t have permission to view this area.” and it redirects the user to that page if they are logged in but don’t have the correct rights to view the content. If the user is not logged in then the link will take the user to WP login page. Works out of the box with WP 4.9

Read all 8 reviews

Contributors & Developers

“Groups 404 Redirect” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Groups 404 Redirect” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.4.0

  • Tested with WordPress 4.8.
  • Added the groups_404_redirect_redirect_to filter.
  • Added the groups_404_redirect_post_param filter.
  • Added the groups_404_redirect_redirect_status filter.

1.3.1

  • Fixed a warning for setups using Groups < 2.x.

1.3.0

  • Moved the settings to the Groups menu.
  • Tested with WordPress 4.7.3.
  • Added the option to indicate the requested URL in a custom URL parameter when redirecting.

1.2.5

  • Groups 2.x legacy mode compatible.
  • Tested with WordPress 4.7.2

1.2.4

  • Tested with WordPress 4.4.
  • Updated link to Groups Restrict Categories.

1.2.3

  • Added a fix to circumvent a bug in some PHP versions related to the usage of method_exists() with an inexistent class.

1.2.2

  • Added check for post restricted by term.

1.2.1

  • WordPress 3.9.1 compatibility checked.

1.2.0

  • Added support for taxonomy term redirection with Groups Restrict Categories.

1.1.3

  • Fixed a redirect loop when redirecting visitors to the WordPress login.
  • WordPress 3.8 compatibility checked.

1.1.2

  • Added the groups_404_redirect_post_id filter to allow fine-tuning redirection by post ID.

1.1.1

  • Improved the wording on the settings page.
  • Added a link to RFC 2616’s Status Code Definitions in the settings.
  • WordPress 3.6 compatibility tested

1.1.0

  • Improvement : Added support for Custom Post Types.
  • Improvement : Avoiding circular redirection (for example when the target post is also protected).

1.0.1

  • Added link to Settings on Plugins screen.

1.0.0

  • Initial release.