• Hi, The problem is in the topic title, but to flesh it out a bit more, the plugin does redirect subscribers, and doesn’t redirect other roles as it should, except admin. But I am also getting this when I check the redirect (even though it is redirecting) – `Expected: 308 to /sorry/

    Found: 200

    Agent: Not using Redirection`

    I am not using any other redirection plugin or code, I have cleared both the browser cache and the LiteSpeed Cache, so I am very confused, because the other redirect I have set up is also getting this message but is also working. The logs also say that the plugin is carrying out the redirects. I have noticed in a couple of other support questions that Firefox has been mentioned, and this is the browser I am using, but I have tried with Chrome as well and admin is still being redirected as well. Is there any way to exclude admin from being redirected? Or is there something else I need to look for that is causing the problem?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author John Godley

    (@johnny5)

    The redirect checker cannot check anything that requires permissions – it does not have the permissions.

    What is the redirect you have created?

    Thread Starter AWOL

    (@awol)

    Just to add to this, to test it further I created another administrator role, but this one is not being redirected! However the other admin is the Super Admin of the network/multisite, if that makes any difference? I am guessing it may have something to do with another plugin, as I have several that are connected to user roles – User Role Editor, WP Simple Membership, and to some extent Classified Listings and myCred. If you think any of these might be interfering from your previous encounters please let me know and point me in the right direction.

    Plugin Author John Godley

    (@johnny5)

    I really couldn’t say if the other plugins are having an effect. This is something you would need to test.

    All Redirection does is call the WordPress function current_user_can with the role that you supply. If that returns true then it performs the match redirect, if it returns false it performs the unmatched redirect.

    If something on your site is altering this then it will also affect Redirection.

    Thread Starter AWOL

    (@awol)

    I have created three redirects in total, one based on users being logged in or out, which isn’t a problem, and the other two are from links within my site I don’t want subscribers to be able to visit; one is a page to be able to gift myCred points to other users, the other is a page to be able to send messages to other users. When I say page though, they are actually tabs on a page but they have their own unique urls. None of these things requires permissions, and if they did I could prevent subscribers reaching them without your plugin, unless I am misunderstanding you?

    Thread Starter AWOL

    (@awol)

    So the weird thing is that your plugin is working as it should EXCEPT for my main admin user. How can it match the subscriber role to admin, especially when it doesn’t for the new admin I have created? I have not changed any capabilities at all.

    Plugin Author John Godley

    (@johnny5)

    As I said, it is just checking with WordPress. It is likely that your admin user includes the capabilities of a subscriber.

    Redirection is a plugin to perform redirects. It is not a user permissions plugin, and there are likely better ways of doing this. For example, redirecting the page will not remove it from your RSS feed, search results, or any other way of obtaining the page contents. It just redirects the URL.

    Thread Starter AWOL

    (@awol)

    Of course the admin users include the capabilities of a subscriber, but that applies to both of them, as well as the other roles, and they are not being redirected, that is what is so confusing to me. I understand what your plugin is, and it is exactly why I wanted to use it – the contents of the pages in question are not being hidden, it is what users can do from those pages that I want to restrict i.e. send messages and gift points, so as to encourage them to pay for a membership. Because of the layout of the page with a number of tabs that come from the Classified Listings plugin, that I am able to add more, with some I want to be accessible to all logged in users, paid or free, while others I want to redirect. The free users can see the tab heading but clicking on it sends them to a page telling them only paid membership allows access.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Redirection for subscriber role is redirectling admin’ is closed to new replies.