Groups 404 Redirect

Download

Download the free Groups 404 Redirect plugin for WordPress.

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 redirect status code can be selected among:

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

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.

References


Comments

145 responses to “Groups 404 Redirect”

  1. Mike B. Avatar

    Hi – I’m using the following plugins: bbPress, Groups, Groups bbPress, and Groups 404 Redirect.

    We’ve set our Groups 404 settings to “Redirect to WordPress login”. This works fine when a visitor tries to access a page protected by Groups, except if that page is a bbPress page. Any suggestions for how to make sure that bbPress pages are also redirected?

    Here is a bbPress page (Topic) that goes to our standard 404 instead of redirecting to WP Login: https://www.medamd.com/discuss/topic/march-4-deadline-on-two-dhcd-grants/

    Image of my settings: https://i1.wp.com/p197.p4.n0.cdn.getcloudapp.com/items/04uJ9R8n/0ecae83c-1ce3-45a8-9bc6-562e811f9fd4.png?ssl=1

    1. Hi Mike,

      I’ve done a test with all the latest versions. For me, a bbPress topic protected by Groups produces a redirect to the WordPress login, when the option is set via Groups 404 Redirect.

      I guess it must be something specific to your setup, can’t see any issues here. Maybe you have some other plugin that might be hooked on the ‘wp’ action (just an idea)?

      Cheers

  2. How can I redirect to a different page based on the page being accessed?

    Now every non logged in user who tries to access a protected page is redirected to the same page. I’d like them to be redirected to a page which can tell them what’s happening.

    1. Hi Alberto,

      Sounds useful but isn’t supported at current. The plugin allows you to specify a single page to which the visitor is redirected and that will be common to all 404s. I’ll keep it in mind for a possible future enhancement though, it surely makes sense in some cases.

      Cheers

      1. Thanks for the quick reply. If I wanted to do it myself or outsource it, would it require much work?

        1. Hi Alberto, it wouldn’t require much work I guess – if you want to have a look at the plugin’s repository it’s at https://github.com/itthinx/groups-404-redirect – feel free to fork and send us a PR if you would like to contribute that addition.

  3. Hi is this plugin still maintained? I’m getting a conflict between it and the woocommerce checkout. When 404 is activated the checkout just spins continuously and never allows them to checkout.

    1. Hi Will,

      Yes of course it’s maintained. What you describe sounds like either a conflict or a configuration error. I would advise to enable debugging and check the debug.log for errors. Also disable any non-essential plugins that might interfere.

      Cheers

  4. Thanks for the information.
    404 page not found is such a big issue for every website it will harm the user experience.
    here is the solution you can use 301 redirection on 404 page it will redirect your page to yor willing page.

  5. If the redirect goes to the login page, can the the user be redirected back to the restricted page after the user logs in?

    This would be the most ideal solution.

    1. Hi JC,
      If you use the ‘Redirect to the WordPress login’ option on Groups->Groups 404 redirect, after login you should be redirect to the origin page if you are no using another plugin related to redirections.
      Kind Regards,
      Antonio B.

  6. I’m on the latest version of Groups and Groups 404 Redirect and it doesn’t redirect at all, just throws the standard 404.

    1. antonio Avatar

      Hi Greg,
      Please check if you have any cache plugin that could be changing the redirections.
      Kind Regards,
      Antonio B.

  7. Hi — When using the redirect, is there a way to allow Facebook to properly view/scrape the page to provide the ability to share the page? We are only restricting partial access and not the entire page, but when FB scrapes the page, it picks up the redirect and contains the redirect page information as the sharing information. Sample URL: http://cw.iabc.com/2015/07/08/actionable-research-depends-on-asking-the-right-questions-sarab-kochhar/

    Thanks!
    Kari

    1. Hi Kari,
      In this case you could restrict part of the content using the [groups_member] shortcode.
      Kind Regards,
      Antonio B.

  8. Hello, I am using groups, woommerce groups, subscription in order to create a membership website. The 404 redirect plugin does not seem to work. I created a restriction page. The restricted pages links desapear when I am logged out of the group created. I would like theme to appear and when I click on it. It redirects me on the restriction page. How can I resolve the problem?
    Thank you for your help.

    1. Hi,
      answered above.
      Kind Regards

  9. Hello, all the pages I restricted are not visible (only visible for the administrator) on the menu or page’s links which means the plugin does not work with me. Could you please help me.
    Thanks

    1. Hi Marie,
      The menu links are displayed only to the correct users. If you need to display always, you can use the ‘Custom Link’ menu item type, so if the ‘correct’ user visists this item, he will see the post/page, and if the ‘incorrect’ user visits this link, then he will be redirect to the Groups 404 redirect page selected.
      Kind Regards,
      Antonio B.

  10. Is it possible to enable hidden posts (belonging to another group witch the current user doesn’t have) to show up in search results but then direct the user when they click on the link to it?

    I want to be able to show a list of Premium posts but redirect the user to the sign up page when they click on it to read it.

    1. antonio Avatar
      antonio

      Hi Tyrone,
      sorry, the search filters the restricted posts/pages. You could use the [groups_member] and [groups__non_member] shortcode, and not restrict the full post/page.
      Kind Regards,
      Antonio B.

  11. Jani Ollikainen Avatar
    Jani Ollikainen

    Hi,

    I have a patch for groups 404 redirect module which I would like to get into the plugin? How should I proceed?

    You can look the patch at: http://pastebin.com/BHPpv2Bc

    It adds support to give original url as parameter to the post or page which we are redirecting, so that post or page can do something and link back to the page which made the redirect to happen.

    1. antonio Avatar

      Hi Jani,
      you can create a fork on Github: https://github.com/itthinx/groups-404-redirect and a pull request when you make the changes.
      Thanks for the contribution !
      Kind Regards,
      Antonio B.

Leave a Reply

Your email address will not be published. Required fields are marked *

Share