• Resolved AWOL

    (@awol)


    I am just wondering about this situation – if I have one URL that two roles can access and three that I want to be sent elsewhere, is there a way of doing this with one redirection? Or do I need to create three separate ones, one for each role? Also if there are users with multiple roles (e.g. admin) and one role can access but the other can’t, would that user be redirected or not? And if they would be redirected, how could I stop that happening? I hope I have made the scenario understandable.

    I am also actually wondering whether it is correct to use redirections for this purpose, and if it causes other issues that I should be aware of? Does it cause any slowing down of the site for example?

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

    (@johnny5)

    You would need one redirect per rule you want to check.

    Also if there are users with multiple roles (e.g. admin) and one role can access but the other can’t, would that user be redirected or not

    Probably, it is up to WordPress what the behaviour is. You would need to test and see.

    And if they would be redirected, how could I stop that happening

    You would not be able to stop it happening.

    whether it is correct to use redirections for this purpose

    I couldn’t really say, other than it seems a complicated situation, and complicated situations usually cause problems.

    Thread Starter AWOL

    (@awol)

    OK, thank you, I will test it out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Match by role/capability’ is closed to new replies.