This topic has 5 replies, 2 voices, and was last updated 7 years by Kieran_SQ.

  • Author
  • #175289
     ysfcn
    Participant

    How can I redirect users who log onto the page in the picture.

    Attachments:
    You must be logged in to view attached files.
    #175291
     Kieran_SQ
    Moderator

    Hi,

    There is a great plugin in the WordPress plugin repository called Peter’s Login Redirect that will be able to handle more complex redirects, like the one you wish to use, with ease. You can find the plugin here https://wordpress.org/plugins/peters-login-redirect/.

    Once you have the plugin installed please go to Settings > Login/Logout Redirects > Scroll to: ‘Specific roles’. In the dropdown select ‘Subscriber’ (if you have changed the default role to something else please select your desired alternative), in the URL field enter your URL in the below format https://www.mydomain.com/members/[variable]username[/variable], set the logout URL if desired, click ‘Add Role Rule, and then save. If the name of your members page is set to anything other than ‘members’ please adjust the URL you use to account for the name of your page.

    Now when a user with the role subscriber logs in they will be redirected to their own profile.

    Hope this helps,

    Kieran.

    Updated for formatting issue

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #175294
     ysfcn
    Participant

    thanks for your help but there is a problem with https://www.mydomain.com/members/%5Bvariable%5Dusername%5B/variable%5D url.

    when ı use http://localhost/spturkey/wordpress/uyeler its ok. its working successfully.
    but http://localhost/spturkey/wordpress/uyeler/%5Bvariable%5Dusername%5B/variable%5D doesnt work.

    Attachments:
    You must be logged in to view attached files.
    #175300
     Kieran_SQ
    Moderator

    Hi,

    It seems there was a formatting issue with my post above please accept my apologies. I have inserted the correct method again below.

    http://www.mydomain.com/members/[variable]username[/variable]

    If the path to your members profile is different than the one stated above please adjust to suit your needs.

    Very sorry!

    Kieran.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #175303
     ysfcn
    Participant

    problem solved. Thank you for your help.

    #175304
     Kieran_SQ
    Moderator

    Fantastic, glad it helped, and again my apologies for the formatting issue.

    Kieran.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?