Site logo

Archived topic

Redirect page if the user is logged in

3 replies · Started by Halil on May 14, 2022

Viewing posts 1–4 of 4

Hi,
I've tried several codes but couldnt achieve what I want.

I'm using a seperate login page for not logged in users. like https://sitename/login

If the user is not logged in, this page works fine.

However, if a logged in user visits this page, by manually typing the url for example, I want that user to be redirected to another page. like https://sitename/myaccount.

How can I achieve this?

Hi there,

This isn't something a theme (any themes) would handle.

You can try checking with WordPress' support team to see if they can offer any advice.

Or post the question in a WP general forum like Stack:
https://wordpress.stackexchange.com/

Thanks for your understanding :)

u r right

:)

This archived topic is closed to new replies.