• Resolved lala9

    (@lala9)


    It works, as long as I don’t try to redirect only a specific role. If I add a user role for a redirection, then all members will be redirected, including admin.

    I have checked your documentation and everything seems to be implemented correctly.

    No caches on. No issues with other plugins. Cookie (GDPR) plugin deactivated.

    Can you please clarify where I should be looking to find the problem?

    FYI, I’m on a multisite but have your redirection plugin activated individually.

    Thank you.

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

    (@johnny5)

    Can you give some details? It’s hard to clarify without any specifics.

    Thread Starter lala9

    (@lala9)

    Thank you for your attention. Tell me what you need to see so i can provide it.

    I see no issue with other plugins. No cache.

    My settings :

    Source URL : /blog/

    Query parameters : exact match in any order

    Match : url and role capability

    Role : subscriber

    When matched : redirect to URL

    Matched target : mysite.com/other-page/ (redirects to site 2 in the multisite)

    Unmatched : blank

    Ignore Case

    Ignore Slash

    • This reply was modified 6 months, 2 weeks ago by lala9.
    Plugin Author John Godley

    (@johnny5)

    If I add a user role for a redirection, then all members will be redirected, including admin.

    An admin is also a subscriber. WP roles are additive, with higher levels passing any tests for the lower levels.

    Thread Starter lala9

    (@lala9)

    Ah. I’m seeing this now. I should have tested with other roles. Apologies.

    But, how can I unblock Admin from this?

    Plugin Author John Godley

    (@johnny5)

    But, how can I?unblock?Admin from this?

    I’m not sure of the logic you are trying to implement, but you can add multiple redirects for the same URL, and each one can affect a particular role. Provided you use the position to arrange them in the right order then you could have something for admins that is processed before something for subscribers. If you don’t want anything to happen then you can use a ‘do nothing’ action to stop further processing.

    Thread Starter lala9

    (@lala9)

    Since i’m on a multisite, when a member joins one sub-directory (site 2), then they are immediately logged in at all the other sites.

    So, I’m trying to temporarily lock a certain user role from accessing one of the sites in the network.

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Issues with user role’ is closed to new replies.