User Role selection on Redirection

#334479
  • Resolved Hamed Azimi
    Rank Math free

    Hello,

    As you know, WordPress’ wp_redirect lets us set redirections simply by adding a snippet.

    The good thing about it is that we can wrap that snippet with a condition and also check the user (like if the user is logged in or logged out, and if logged in, then the user’s role and…) and this helps us have smarter (or better to say, more accurate) redirections.

    There are pages in our website that we want to redirect the guests to other pages, but we want to let the members view the content of them, and there are many other pages that we want to redirect pretty much anyone except one single role. (this currently is not possible using Rank Math’s redirections as it doesn’t let us check the user). So, we ended up adding a bunch of snippets to have those redirections using wp_redirect template_redirect.

    But it would be great if you add an option in Redirections in Rank Math to let us check the user’s status (guest or logged in) and role. This will help us manage all our redirections in one place and keep things organized.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thanks for contacting us and sorry for any inconvenience that might have been caused due to that.

    I have added this as a feature request to our internal list of suggestions and shared the same with the dev team for further discussion.

    Please don’t hesitate to get in touch in case you need any other assistance.

    Thanks.

    Ananda
    Rank Math business

    Yes, please be so kind to add this.

    Hello,

    We are super happy that we could address your concern.

    Please do not hesitate to let us know if you need our assistance with anything else. It will be our pleasure to assist you again.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘User Role selection on Redirection’ is closed to new replies.