Groups 404 Redirect


Download the free Groups 404 Redirect plugin for WordPress.


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)


  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.


145 Responses to Groups 404 Redirect

  1. David February 25, 2016 at 10:48 am #

    Hi Kento

    I don’t know much about 404 error pages because I had started my blogging career recently.

    But somewhere I read that If any blogger or writer deleted the existing web page then the URL of that web page becomes 404 URL and that page becomes 404 page.

    It is also said that Google don’t like 404 page so I checked my site whether I had any 404 page or not then I found few of the 404 error pages on my site also.

    But Now after reading this post, I can easily handle these pages.

    Thanks for sharing such a helpful post with us. 😀

    • Kento March 1, 2016 at 7:14 pm #

      Hi David,

      Thank you very much for your feedback on the plugin, great to hear that you like the solution and it’s certainly an improvement if you want to show a helpful page to your visitors instead of just the 404 🙂


  2. Edgar January 12, 2016 at 12:01 am #

    Please allow us to redirect back to the restricted page after successful login.

    I have the plugin configured to redirect to a custom page ID (the my-account page created by WooCommerce) if a logged out user visits a restricted page.

    Once the user logs in on the My Account page, they are not taken to the original page they meant to visit.

    • Edgar January 12, 2016 at 12:08 am #

      I see that someone already suggested on how to do this:

      First off – thanks for your work on this, its very useful. I do have a small improvement that could be made. For some sites with a custom login, this plugin doesn’t have the ability to pass the requested url to the page its being redirected to – something the wordpress default login page does.

      You can add this functionality by passing the current requested page via the redirect_to query string and that would allow users to customize the landing page to redirect upon login, to the original requested page. Just wrap get_permalink() in the code below (With closing bracket) and the url will be appended with ?redirect_to=$current_url


      • antonio January 14, 2016 at 10:02 am #

        Hi Edgar,
        If you select ‘Redirect to the WordPress login’ in Settings->Groups 404, redirect to the last page after login should work.
        Kind Regards,
        Antonio B.

  3. Sean December 28, 2015 at 11:21 pm #

    Feature suggestion: Thanks for the plugin! One thing that would be useful is if the plugin passed the originally requested url to the page it redirects to (by post maybe?). I redirect to a login page, but once they log in, they have to go back to the original link (usually from an e-mail) in order to reload the page. I would love to be able to redirect them to the originally requested page once they log in.

    • Kento December 29, 2015 at 3:12 pm #

      Hi Sean,

      Thanks for the suggestion, this is already possible. If you leave the Page or Post ID empty and enable the Redirect to the WordPress login, then it will redirect to that initial page after the user has logged in.


      • Sean December 31, 2015 at 6:22 pm #

        Oh! Cool… thank you!

      • Sean December 31, 2015 at 6:24 pm #

        Oh, actually I jumped the gun on the last reply before I fully understood it. My issue is that I really do want to use my custom login page.

        • Kento January 4, 2016 at 12:50 pm #

          Hi Sean,

          Ok thanks, there’s a similar request with a possible improvement indicated here – I’ll need to look into it further to include it.


  4. Celia December 15, 2015 at 9:58 am #

    Hi! I don’t know why, but since yesterday, the plugin stopped working. I have a restricted page which was redirected using this plugin to another page. But everything stopped working today. When I activate the plugin no one can access the page, not even the administrator. I don’t know what’s going on?

    Yesterday, I installed a SSL certificate, could this be the problem or maybe the Block Bad Queries (BBQ) plugin? I have no idea. Please help.


    • Kento December 15, 2015 at 1:37 pm #

      Hi Celia,

      It should still be working but if you have changed something and now it doesn’t, please try to disable the new plugin and check. Can you share the URL to that page please?


  5. Peter November 26, 2015 at 12:54 am #

    I am using Groups, 404 groups
    And I can’t get the 404 to redirect to the woocommerce login/regis page “My Account” page ID=195
    I have set the Woo settings to all variations…
    What did I miss…
    I tried to disable everything…. but nada

    Last month I was trying the opposite 🙂 I wanted only to show the WP login… But change my mind – I might have added some code??
    Help please!

    Best regards


    • antonio November 27, 2015 at 9:10 am #

      Hi Peter,
      please send us dashboard admin access to support at itthinx dot com (indicating this comment), and we’ll have a look at your settings.
      Kind Regards,
      Antonio B.

  6. Felipe Santana August 6, 2015 at 10:38 pm #


    For some reason I’m getting redirects on pages that it shouldn’t. I use to have a Group assigned to those pages, but I removed and some still redirecting. I tried to change the Permalink on wordpress but no success. Any ideas what Ive done wrong?

    • antonio August 7, 2015 at 7:21 am #

      Hi Felipe,
      you can use Display Post Meta plugin to check if some ‘groups-groups_read_post’ custom field exists.
      Antonio B.

  7. Kevin Runnels July 28, 2015 at 10:33 pm #

    Love your plugin!

    A great enhancement would be to allow for the user to not only specify a post/page id to which Groups 404 redirects, but to pass an optional parameter string that the page can use. Instead of a generic “sorry, no can do” page, I could create a page that is “sorry you couldn’t access the page called “The page you really wanted”. Please email the administrator and ask for access. I could then also set up a mailto: link that would include “the page you really wanted” in the subject line and it would help the user experience. I could reuse that same page no matter what what page the user was denied access to and was redirected.

    • antonio August 3, 2015 at 7:45 am #

      Hi Kevin,
      thanks for the feedback, we’ll have a look. You could use the [groups_member] & [groups_non_member] shortcodes on every page to create the custom text.
      Kind regards,
      Antonio B.

  8. Joji March 30, 2015 at 5:11 am #

    We are using groups, groups 404, with groups for woocommerce and subscriptions and it works great! Now we are trying to convert our main blog page into a preview page that will allow all visitors to view this page only (members and prospective customers). However, since all the posts are for members only the page appears blank instead of showing the image thumbnails and titles – which is what we want. How can we show these thumbnail images and titles to everyone while still protecting the pages and images for members only. So if a non-member clicks on the post they still get redirected using groups 404. Is this possible?


  9. Irati January 19, 2015 at 12:04 pm #

    Hi antonio,
    Thanks for your quick reply. Yes, I had seen the Access Restriction box in the side bar.
    This is what I want to achieve: users will enter the website WITHOUT loging in. I want them to be able to see the page link (Member Area) in the menu, and when they click on the link, they will be forced to log in to see the content of the page. This page will contain the files managed by the Groups Files Access plugin.
    Now, when I set groups_read_post permission in the Access Restriction box, the users who are not logged in can’t see the page link on the menu.
    I hope it all made sense!

    • antonio January 21, 2015 at 4:21 pm #

      you can add in your functions.php file:
      remove_filter ( 'wp_get_nav_menu_items', array( 'Groups_Post_Access', 'wp_get_nav_menu_items' ), 1, 3 );

      • Dave January 30, 2015 at 3:06 pm #

        I am actually looking for a solution to accomplish the opposite of that. I want to hide specific menu items based on group assigned. Is that possible with the 404 Redirect extension for Groups?

        • Dave January 30, 2015 at 3:08 pm #

          Basically, I am looking for a way to customize the nav based on what group the user is assigned to. Is there any way to do that?

        • kento February 2, 2015 at 9:56 am #

          Hi Dave,

          If the menu items are related to protected pages (with access restrictions in place) they should not show up in the menu unless the user viewing the menu is authorized to access them.

          It depends on the type of menu item you use, for example, if you add one using Links where you input the URL and Link Text, then it won’t be hidden.


  10. Irati January 19, 2015 at 10:10 am #

    Hi there,
    Very basic question here: How do I force visitor to login when they are accessing a certain page?
    I have already configured the Setting -> Groups 404 to Redirect to WordPress Login, but I don’t know where in the page I have to set the access restriction.

    • antonio January 19, 2015 at 11:46 am #

      when you edit your page, you have a box (in right column) when you can set the access restrictions. Please have a look to Groups Documentation page.

  11. David Serna December 4, 2014 at 1:27 am #

    Thank you for your plugin. I set it up to redirect to page “my account” where my woocommerce login page is for users. That works fine the problem is after the user logins it takes him to the my account page in woocommerce and not the page he was logging in to be able to see. Is there a way to redirect to target page after logging in?

    • kento December 9, 2014 at 1:43 pm #

      Thanks for your comment. If you enable the option “Redirect to the WordPress login” instead, it takes the user to the initial page. You can’t redirect to the “My Account” page and then redirect to another second page though.

  12. Jane October 29, 2014 at 8:21 pm #

    Hi Kento, Thanks for your reply and note about the message from WooCommerce Subscriptions. Do you have any suggestions about how I can disable the code that generates the message and to have the code in the Groups-404-Redirect plugin called instead? I’m not sure of the best way to clear the cache. Are you referring to the WordPress cache or the browser cache? Thanks so much for any help you can provide.

    • kento November 3, 2014 at 12:55 pm #

      Hi Jane,

      I would ask on WooThemes support regarding the message, they are very efficient and forthcoming. I was referring to the WordPress cache – if you have a caching plugin installed you should see an option in its menu for that, W3 Total Cache for example has it on the top menu bar under Performance > Empty All Caches and more detailed options under the Performance menu in the sidebar.


  13. Jane October 26, 2014 at 12:29 am #

    I installed the Groups-404-Redirect Plugin and specified which Page (using page ID) I want to redirect to when the current user is not logged in and/or doesn’t have the rights to view the content pointed to. But it isn’t redirecting.
    I am testing this on a staging site (vs. the live production site) and I see the message “It looks like this site has moved or is a duplicate site. Subscriptions has disabled automatic payments and subscription related emails on this site to prevent duplicate payments from a staging or test environment. Learn more»” at the top of the WP Dashboard page. Could this be influencing why the redirect is not working?
    Do you have any advise on how I can get the redirect to work on this test site?
    Thanks very much.

    • kento October 26, 2014 at 9:48 pm #

      Hi Jane,

      The message you quote seems to be from WooCommerce Subscriptions. The redirection is not related to this but you should check if your post IDs are still valid. Also clearing the cache might help.


  14. W Evans October 10, 2014 at 5:57 pm #

    Is Groups 404 Redirect compatible with WordPress 4.0? I can’t find mention of it on your site here, and the wordpress plugins page is listing 3.9.2. I see that Groups itself is compatible, so I’m guessing “yes” but don’t want to upgrade and fail.

    • antonio October 14, 2014 at 8:42 am #

      Yes, it works fine with WordPress 4.0.

  15. Tim August 7, 2014 at 7:44 am #

    Running into an issue and unable to get this 404 redirect to work. I’ve tried both the redirect to login and the redirect to specific (home) page. Running into a 502 bad gateway error.

  16. Henry July 10, 2014 at 9:06 pm #

    Hi there,

    I’m having trouble with the 404 redirect for a restricted page and I can’t get it to work with any of the settings. If you go to my demo environment at (a restricted page) you’ll see that it takes you to a 404 page on my primary domain site (as opposed to a 404 on the demo site when it’s off).

    Any ideas why it may be doing that?

    • antonio July 15, 2014 at 8:50 am #

      sorry I don’t know your demo and primary domain. You can send us dashboard admin access to support at itthinx dot com and we’ll have a look (please indicate this comment in the email).

  17. Robert July 1, 2014 at 5:20 pm #

    Hi Kento,

    I’ve downloaded the Groups 404 plugin, however, am having issues with it redirecting properly.

    I noticed in a previous post that there was an issue with it and how Genesis handles 404 errors. We use the Genesis framework and I’m also encountering the same issue and am wondering if you have any suggestions on how to handle this?

    • kento July 6, 2014 at 12:05 pm #

      Hi Robert,

      I’ve just tested it and it works fine here on a test installation. I have tested redirection to the home page, to the WordPress login and to a specific page, all work correctly with the Genesis framework and a theme based on it enabled.

      I suppose you have another thing conflicting …

  18. Bob Dunn June 16, 2014 at 5:56 pm #

    I am using the redirect with the groups plugin and WooCommerce. I have it redirecting to a specific page which works great. But the one problem, if you click on “lost password” anywhere, even on the WP login page, it redirects to that page I have set up. It’s not a protected page, so why is it doing this. No one can retireve a lost password.

    • kento June 17, 2014 at 10:51 am #

      Have you added any access restrictions to the lost password page? Also note that there are two different links to a password recovery page, one of those produces a 404.

  19. sarah June 16, 2014 at 12:38 am #

    Hi, I’m having trouble with my groups redirect link. It was working but now directs to the standard 404 page not found. I have sent my login details to your support email – hoping you can take a look for me.

    • kento June 16, 2014 at 5:57 pm #

      Thanks Sarah, I’ve checked it and released version 1.2.2 of the Groups 404 Redirect plugin which fixes that. Many thanks for pointing out the issue!

  20. Flick March 28, 2014 at 5:22 am #

    Was just going to make a tiny suggestion for a future upgrade if possible… Could you include an option to append the Current URL to the redirected post?

    I am using this plugin and it works great to redirect users without access to a page we’ve created to login (client doesn’t want to use the admin login), however it’d be awesome if on that page I knew where they came from to redirect them back there after they login… So I’ve jumped in and added the redirect code myself, but of course this will be lost with upgrades so thought I’d suggest it!

    • kento April 1, 2014 at 10:32 pm #

      Sure, would you mind sharing the addition you’ve done as a patch based on the current trunk?

    • Lee Erickson January 7, 2015 at 4:39 pm #

      Could you let me know the code you used to make this redirect back happen?

      I need this modification myself thanks!

  21. Benjamin Lee March 27, 2014 at 8:27 pm #

    Where can I find the specific Page or Post ID on the page that I’d like for the redirect to go to?


    • kento April 1, 2014 at 10:29 pm #

      There’s a settings link for the plugin entry.

  22. Jason March 13, 2014 at 4:25 am #

    Hi Guys,

    I’m using the 404 redirect and the categories restrict plugins on a site – however the 404 redirect plugin only appears to work for posts/pages that I’ve explicitly set restrictions for on the post edit screen. And not when the post is simply part of a category.

    So for example:
    – If I create a restricted category and then create a new post and assign it to the category, non members get a 404
    – If I create a restricted category and then create a new posts and assign it to the category AND set restrictions on the individual post, non members get the login screen.

    Any thoughts?

    I’m using the latest version of the plugins.

    Thanks in advance.

    • kento March 20, 2014 at 10:34 am #

      Hi Jason,

      Groups 404 Redirect as it is currently only looks for the current post and redirects if the user doesn’t have access to it. In order to make it work with restricted categories, I’d have to review the plugin and make the appropriate additions so it supports that as well. Basically I think it would be good to have that added, I’ve taken note of this as a feature request and will do that. Thanks for pointing that out 🙂


    • kento March 27, 2014 at 7:41 pm #

      This has been added to 1.2.0 just released.

  23. Steve February 12, 2014 at 4:11 pm #

    Hi Kento,
    I’ve got a few more questions for you. So like I said before, we have a multisite with hundreds of network-level users but very few site-level users. We are using a plugin called Join My Multisite which makes it so logged in network-users that navigate to a site become a user on that site. When these users become a site-level user, they are also added to the Registered group. However, if the user tries to access restricted content and it redirects them to the site-level WP login, when they login they become a user of the site like usual, but they are not added to the Registered group. This does not happen if they go to the network-level login. So I’m wondering, is there a way to get Groups 404 Redirect to redirect to the network-level login? Or a way to get the new site-level users to be added to the Registered group?
    Thanks again.

    • kento February 13, 2014 at 12:07 pm #

      Thanks for the additional info Steve. How exactly do you have Groups installed please? I’m referring to network activated or individually … also would shared groups among the multi sites be a better option?

      • Steve February 14, 2014 at 6:04 pm #

        I saw that you can redirect to a specific page, but that’s only site-wide correct? The network-level WP login wouldn’t have a page ID on any specific site would it? And you can’t redirect to an arbitrary address, it has to be a page with an ID?
        Groups is installed individually, but I’m not sure if network activating it would make a difference. I can definitely check and get back to you. I wasn’t aware that there was a way to share groups across sites. Could you elaborate?

        Thank you so much.

        • kento February 20, 2014 at 10:56 am #

          Currently you can’t share groups across sites (multisite), that’s what’s being discussed currently with other users. Give the plugin a try with redirects in multisite and let me know if you have any suggestions please.

  24. Steve January 31, 2014 at 6:15 pm #

    Hi Kento,

    Another question. So using a plugin called Join My Multisite in combination with Groups and Groups 404 Redirect, we were able to get the plugin to work for our multisite. However, we are now having the issue that when users login through Groups 404 Redirect, they are added to the site through Join My Multisite, but they aren’t added to the Registered group. If a user logs in at the network level, then navigates to the specific site, it adds them correctly, but if they login at the site level it does not work. Is there a way to get Groups 404 Redirect to redirect to the network login rather than the site login, or just to a specific URL, or is it limited to the site login? It was working previously, but now for some reason it’s not updating the Registered group correctly.

    Thank you,


    • kento February 13, 2014 at 11:57 am #

      Hi Steve, it shouldn’t make a difference because the appropriate actions seem to be triggered in either case when the user is created. You can redirect to a specific page instead of the WordPress login under Settings > Groups 404.

  25. James Giroux January 9, 2014 at 10:44 pm #

    Great plugin! I’ve used it on a number of sites. One thing we’ve noticed is that restricting access to particular posts works great and the redirect plugin works for individual posts but if those posts are part of a restricted category, the category archive page still shows up with a 404. Any ideas on how to work around that? Thanks for creating a great plugin for WP. You can see an example here:

    • kento January 10, 2014 at 6:20 pm #

      Hi James,

      That page doesn’t produce a 404, it attends the request with 200 OK and simply shows an empty category 🙂

  26. kad January 7, 2014 at 6:50 pm #

    Hi guys
    After reading all the comments here and on subscription extension, I still do have one question, i’m a bit confused lol.
    My idea is to have a shop where all visitors can see our products, but only those who have paid a membership can buy them.
    Using subscription + groups + 404, I have 3 groups, registered, paid members and paid member with monthly subscription

    If i restrict the checkout page, visitors can not buy the membership, so it’s obvious that’s not the right way.

    How can configure what follows:
    -The product (membership) can be seen and ordered by all.
    -Other products can be seen but can not be ordered unless the members are already in the paid group (with monthly subscription)

    Thanks and happy new year.

    • antonio January 9, 2014 at 8:29 am #

      this code can help you. You must add it to your function.php theme file.
      $productsID contains your products id that you want filter.

      • kad January 9, 2014 at 9:44 am #

        Thank you very much antonio
        From that code the idea is very clear, so if im not wrong, this is saying:

        the products 18, 119 and 21 (in my case it’s just one id, the membership)
        $productsID = [“18″,”19″,”21”];
        can be bought by all and the rest can not unless the members are in group registered
        $group = Groups_Group::read_by_name( ‘Registered’ )

        Is that correct?
        I added the code with my product id’s and groups and having a full white page in admin and frontpage, but it’s ok, ill figure out that,

        Again thanks for the hint of eggemplo_woocommerce_is_purchasable.

        Best regards

        • antonio January 9, 2014 at 7:02 pm #

          the $productsID are the products that you want to protect (all except membership).
          The white page indicates a code error, if you want, use with your code, and I’ll have a look.

          • kad January 9, 2014 at 7:31 pm #

            Hi Antonio
            Thanks again for the answer

            I copied pasted the code exactly like it is, checked it many times, i just changed the products id and still have a blank page.

            Anyway, I appreciate your involvement, I asked a developer to take a look at it.

            as we plan a promotional shop, we will add new products and delete others every day, so adding ids on a php file may be complicated for the person who will manage the shop.

            Is there a way to make the contrary, to make the membership purchasable and the others no?

            example: membership is id 34, all the rest can not be bought.


            • antonio January 17, 2014 at 3:52 pm #

              maybe a conflict with the versions or another plugin.
              If you need the contrary, you can change:
              if ( in_array($pid,$productsID) )
              if ( !in_array($pid,$productsID) )
              “if not in_array …”

  27. Karen December 16, 2013 at 7:59 am #

    Hello Kento

    I upgraded the 404 re-direct plugin and activated it again, but it still gives error 500 internal server errors when I edit posts. So have to de-activate it when I edit.

    I see you deleted my last comment…?


    • antonio December 16, 2013 at 9:09 am #

      please send us dashboard admin access to support at itthinx dot com and we’ll have a look.

  28. Jon December 13, 2013 at 9:10 pm #

    I have that part set up. My question is how do I make a link to the restricted page that the customer receives. I set a link in the product advanced tab that the customer see in his accounts page after payment but this link redirects to the catalog – it cannot link to the restricted page.

    It must be paermalinks but still cannot get the link to work.

    • kento December 14, 2013 at 1:58 pm #

      Hi Jon,

      I assume you have added that link to the Purchase Note field of the product. If that redirects them to the shop page instead of the protected page, I would say the link is incorrect or incomplete. For example:

      Product XXX grants access to group AAA, purchase note “Access your content here: would be a page with access restriction aaa, group AAA has the capability aaa.

      If the order has been paid, the customer should be able to access that page.

  29. Jon December 13, 2013 at 2:17 pm #

    I set up Groups woo commerce to sell access to a restricted page (a page called movieABC) to watch a streaming video (rental). I also sell this video as a download product.
    I included a url link in the rental product page to the restricted page. (I wish the customer could get this in an email). But this link redirects to the woo commerce product download. For example:

    Link to rent the streaming video (restricted page)
    This redirects to the catalog page for the download product at

    I cannot get the page called movieABC to show from any link. It always redirects to the catalog product.

    Any ideas really appreciated.

    • antonio December 13, 2013 at 6:58 pm #

      please have a look to this video.
      – In your “movieABC” product you must select the group to add access (in Groups tab on product edit page).
      – Set access to this group in your movie page.
      – When the user purchase the “movieABC” product, then he has access to the movie page.

  30. Karen December 10, 2013 at 12:01 am #

    Hi Kento

    Thank you for a great plugin. The groups plugin works great and the groups 404 redirect does exactly what it is meant to do. However it drastically slows everything down when I am editing posts. I keep on losing connection then getting error 500 internal server errors. The server log says the edit php files were not found.

    I disabled all plugins and tried each plugin one at a time until I got to the 404 and this is definitely what is causing the problem. It is vital as with Chrome, users are kicked right off my site onto a search page. IE and FF will give a standard 404 page. However, I would rather have your plugin working.

    Thank you

  31. Steve December 6, 2013 at 3:36 pm #


    I just installed Groups and Groups 404 Redirect on a fresh install of WordPress with no other plugins installed or activated. The plugins worked fine on a single site, but when we enabled multi site, we got the same error as before. I network activated both plugins, created a restricted page, then navigated to that page. When I navigated to it, it kicked me to the WordPress login, just like it’s supposed to do. I then registered a user and navigated back to the restricted page to login. When I try to login, it gives an error that the site isn’t redirecting properly. If I can provide any documentation or logs to help, let me know. We are really looking for a plugin that makes it so any registered user on a multisite can access restricted content, and this plugin is very close to doing that, so let us know if there is anything we can do to help. Thanks again.

    • kento December 17, 2013 at 5:07 pm #

      Hi Steve, with the latest version this should be fine now.

  32. Steve December 3, 2013 at 10:57 pm #


    I’m using this plugin for a multisite where there are already hundreds of users at the network level. I have it set that when a page is restricted, the person is directed to login. However, when you login it redirects you in an infinite loop. I logged in as the admin and the username I was logging into was added to the site, but not added to the Registered group. I’m not sure if there’s a problem with autoadding users to the Registered group or a problem with the login. Any advice would be great.


    • kento December 4, 2013 at 7:00 pm #

      Hi Steve, do you have any other plugins besides Groups and Groups 404 Redirect activated? If yes, try to deactivate them first and test this again to see if it may be a conflict.

  33. jnh26 October 22, 2013 at 4:42 pm #

    I am using Groups + Groups Subscriptions + 404 redirect, and when the 404 redirect plugin is activated, the administrative override in Groups no longer works, and administrators are redirected just like other users.

    How can the plugin be fixed so that the Groups administrative override applies to the 404 reidrect plugin also?

    • antonio October 23, 2013 at 8:16 am #

      please make sure you have selected “Administrators override all access permissions derived from Groups capabilities.” on Groups->Options.
      If this is selected, please disable Groups 404 Redirect and try again.

      • Jessica October 23, 2013 at 5:58 pm #

        I deactivated the Groups 404 Redirect plugin, selected the Administrators override in the Groups plugin, and reactivated the Groups 404 Redirect plugin. When I log in as an administrator and visit a protected page, I am redirected as if I don’t have permission to see it.

        In other words, the Group 404 Redirect does not include the administrator override that is in Groups. When I deactivate the Groups 404 Redirect, the administrator override works perfectly.

        • antonio October 24, 2013 at 8:02 am #

          if you want, you can send us dashboard admin access to support at itthinx dot com, and we’ll have a look (please indicate this comment in the email).

  34. Michel October 15, 2013 at 8:14 am #

    I installed the Groups 404 Redirect plugin and its partially working as expected.

    When a user clicks on a page/post enabled for a specific group, I have the settings to redirect them to login. Once they are logged in, they can access the group enabled page they clicked on initially. Great!

    If I access some page that doesn’t exist, then our standard 404 page comes up. Great!

    However, if a user clicks on a page/post enabled for a group they are NOT added for. It goes to different page showing the Dashboard, Profile, and Logout links. It would be ideal to forward them to an “Access Deny Page/post” that we can specify. Redirecting to a user profile page is confusing even for me.

    Therefore, how can I setup the plugin to forward to a custom page/custom is the user is not authorized to view that page?


    • antonio October 15, 2013 at 4:58 pm #

      you can indicate the destination post/page on Settings->Groups 404.

      • Michel October 15, 2013 at 6:58 pm #

        I did try that, but nothing happens. For example, when a user clicks on a page/post enabled for a group which they are apart of they do not go to the group enabled page/post after they login. Instead they go directly to the page/post that I specify in the Group 404 settings. I’m able to replicate this several times. Please advise? Thanks!

        • antonio October 16, 2013 at 8:32 am #

          Sorry, I think I now know what you want:
          When someone access to a protected post, If a user is a guest, then it is sent to the registration page, and if you are already logged in, then sends her to a “Access Deny Page / post”.
          You could fix it, creating an “Access Deny Page / post” using the Pippin’s login shortcode, and redirect with Groups 404 to this page.

  35. alaska September 19, 2013 at 10:38 pm #

    Dear antonio,

    I did delete the plugin folder, still it gives me same error.
    Login page is not protected its public.

    • antonio September 20, 2013 at 7:58 am #

      Seems that the problem isn’t in the plugin.
      If you want you can send us dashboard admin access to support at itthinx dot com, and we’ll have a look.

  36. alaska September 19, 2013 at 6:36 am #

    I set to redirect to login page with page id 110. Now I cant even login to wp-admin. Please urgent help required. The redirect status was set to Temp redirect. I get followng error:
    The webpage at has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
    Learn more about this problem.

    I cleared cookies still no help.

    • antonio September 19, 2013 at 9:52 am #

      please try redirect to a “public” post, maybe you are redirecting to a “protected” post, and you are in a loop.
      If you can’t login to dashboard, you can delete Groups 404 Redirect plugin folder, and try again.

  37. Craig August 19, 2013 at 9:41 am #

    I managed to get it to work again by uploading the original files I was using on a local Bitnami installation.

    • antonio August 19, 2013 at 9:49 am #

      Hi, I’m glad that works. 😉

  38. Craig August 16, 2013 at 9:08 am #

    Hi there
    I managed to get this working really well on my local bitnami development site, but am struggling to get it to work on my live site.
    I have a lot of posts / pages and the page id is 5035, would this make a difference.
    Any help would be appreciated.
    Interestingly I was the person who posted to have the redirect a month or so ago.

  39. Richard Tandoh July 22, 2013 at 11:42 pm #

    If you want admin access to the site, please let me know.


    • antonio July 23, 2013 at 4:46 am #

      Hi, please send us admin access to support at itthinx dot com.

    • kento July 24, 2013 at 9:37 pm #

      Hi Richard,

      Got a chance to look at it, this seems like a conflict to me. It might be related to another plugin or even the theme.

      • Richard Tandoh August 18, 2013 at 1:40 pm #

        Thanks. Reinstalled the site and now it works.

  40. Richard Tandoh July 21, 2013 at 2:58 pm #


    Using the plugin (with WooCommerce Groups and WooCommerce Subscriptions) but can’t get it to work. The browser (Chrome, Firefox) just times out with an error, e.g. Chrome displays a page saying “This web page has a redirect loop”, instead of redirecting to a post/the login page. Please advise.


    • antonio July 22, 2013 at 3:41 pm #

      Hi, can you show us the website url?

  41. ObjectPlot July 16, 2013 at 4:16 pm #

    I’m currently trying to use this but I get no 404 redirect to work currently.

    • kento July 16, 2013 at 8:17 pm #

      Can you give an example URL please?

  42. Robert Bui May 11, 2013 at 2:40 pm #

    It works perfectly. Thank you very much for your help.

    • kento May 13, 2013 at 9:36 am #

      Great 🙂 and thanks again for pointing me to the issue!

  43. Robert Bui May 10, 2013 at 4:18 pm #

    Hello all,
    I have tracked down to this function
    Groups_Post_Access::public static function user_can_read_post

    If the user doesn’t have read access the function will return false. It looks like the function is also triggered for unregistered view a restricted post. The url_to_id functions always return 0. This means, we won’t able to find out the post_id either.

    • kento May 10, 2013 at 4:45 pm #

      Hi Robert,

      Please try release 1.1.0 (just out a few minutes ago) which should also work fine now with what you described earlier, let me know in case you still have issues with it.


  44. Robert Bui May 7, 2013 at 1:05 am #

    My test shows the problem not redirecting is due to the permalink enabled and the post is custom type.
    Both of these return $current_post_id = 0
    $current_post_id = url_to_postid( $current_url );
    current_post_id = $wp_query->get_queried_object_id();

    As far as I can tell, url_to_postid will not work on custom post type. I am assuming get_queried_object_id suffer the same issue.

    When I disabled permalink, the redirection works.

    So, I am unable to find a solution.

    • kento May 10, 2013 at 4:12 pm #

      Thanks for reporting this Robert, I’ve added an alternative function that will find the post also for CPTs and pretty links. Will release it today 🙂

      • James Deadman October 29, 2020 at 11:08 am #

        This plugin doesn’t work for CPT

        • Kento November 1, 2020 at 8:29 pm #

          Hi James,

          Why wouldn’t it? We haven’t seen any issues so far, I would recommend to check if your custom post type is properly integrated.


  45. Nancy Nardi January 29, 2013 at 3:17 pm #

    I was able to get it to work on:

    I didn’t do anything different – it just started working today. It’s still not working on

    Maybe this just has something to do with hosting – I host on ZippyKid. I setup a test site on zippykid, disabled all plugins except for groups and groups 404, and could not get it to work.

    Setup test site on bluehost and it works just fine.

    thanks for the plugin.

    • kento January 31, 2013 at 1:19 pm #

      Hi Nancy,

      Thanks for trying it out and I’m glad you have it working now. It could also have been related to caching (I found myself wondering when testing another plugin for a demo site where WP Supercache had been enabled and had to be completely removed before things started working again).

  46. Nancy Nardi January 25, 2013 at 8:20 pm #

    I’m using your Groups plugin with the WooCommerce Groups extension on a Woo Themes site, and cannot get the Groups 404 plugin to redirect to a post or the login page.

    Any suggestions? Thanks

  47. David Anthony January 19, 2013 at 3:25 am #

    Hello there,

    Your plugins are fantastic.

    The Groups 404 isn’t working for me either. The post title is showing in the backend, indicating that I have entered a proper post ID, but it isn’t redirecting. Just displaying the 404 not found error

    Thank you so much for your time and I apologize for the inconvenience, but is there any way you can help me to make it work? My theme was built on Arturo framework if that helps at all.

    Thank you again.

    • kento January 25, 2013 at 9:02 pm #

      Thanks David 🙂

      I’d be happy to have a look at that as well, I don’t have a copy of that theme but we can ask the author if he would cooperate to see what’s happening. Are you in touch with him?

  48. Araby Greene January 17, 2013 at 12:10 pm #

    Thank you. I know you’re busy and appreciate your looking into usage with Genesis.

  49. Araby Greene January 14, 2013 at 5:09 pm #

    Good thought, but it didn’t work for me. I also tried adding the following line in the redirection section of the plugin, but without success:

    remove_action( ‘genesis_loop’, ‘genesis_404’ );

    As a workaround, I’m using the 404-widget with added text about members-only content, so I will continue to use the WC Groups plugin to restrict access.

    I’ve tried using a custom 404 but it didn’t help with the redirection.
    Thank you for your time. If I discover anything useful, I’ll share it.

    • kento January 17, 2013 at 11:31 am #

      Thanks for trying it, I’ll test this myself and see what can be done to make it work with Genesis as well.

  50. Araby Greene January 12, 2013 at 6:20 pm #

    I’m using your Groups plugin with the WooCommerce Groups extension on a development site. So far it’s working great on my development site. Today I installed the Groups 404 plugin, but cannot get it to redirect to a specific postID or login page with any of the redirection options.

    I think the way Genesis handles 404 errors is the issue rather than any problem with the Groups 404 plugin. Others using Genesis may encounter the same problem. I’m going to see if the Genesis Widgetized and Not Found plugin can help. Would have been easier to use Groups 404!

    As a workaround for restricted blog posts, I’ve added a non-restricted post to the archive explaining that user would see more posts if they were logged in as a member. Thank you.

    • kento January 14, 2013 at 11:24 am #

      Thanks for sharing that, could you try the following and let me know if it works?

      Try to override Genesis’ redirection by letting the plugin act earlier, for example:

      In groups-404-redirect.php line 44 says:

      add_action( 'wp', array( __CLASS__, 'wp' ) );

      Substitute it with:

      add_action( 'wp', array( __CLASS__, 'wp' ), -1000 );

Leave a Reply

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account