Open your theme’s headr.php file and add at the top
<?php
if( !is_user_logged_in() ) {
wp_redirect(get_permalink(123));
exit;
}
?>
just change 123 to the id of your about page, or replace get_permalink(123)
with the about page URL example:
<?php
if( !is_user_logged_in() ) {
wp_redirect('http://mydomain.com/about');
exit;
}
?>
Related Posts:
- How can I create a separate blog that is private?
- custom login page redirect to logged in user profile page
- How do I check if a post is private?
- Send reset password link to user from custom lost password form
- WordPress/Buddypress login theme function [closed]
- Private page protected with username and password
- Facebook login for private group members
- How can I login as admin after redirect to custom login page
- Replacing default display name to login name
- Simplest way to create two private sections each with a common account
- Is there a way to give users the option to log in to their favorite group on login? [closed]
- Browser Caching for Logged in Users
- Can I programmatically login a user without a password?
- How to login with email only no username?
- Removing username from the ‘wordpress_logged_in’ cookie
- Woocommerce registration page [closed]
- Share login data/cookies between multiple installations
- Is it possible to sign in with user_email in WordPress?
- How to use current_user_can()?
- WordPress registration message
- Email address or username used to login in wordpress
- How to customise wp-login.php only for users who are setting a password for the first time?
- Remove built in wordpress login and use only google auth
- Websites defaced by uploading script using theme editor
- Login redirect_to loop with reauth=1, cookie expiry set to 1 year in past
- User Login Form Outside the Default wp-login Form
- I am not able to login to my wp-admin panel
- Block Logged-Out User Access to Directory Outside of WordPress using .htaccess and PHP file
- how to logout user on browser tab or window closes
- Integrate WordPress Blog with Moodle LMS
- Making a client page
- Auto login user with link from Mail
- To be able to login as different user
- How do I Create Forums with bbpress Plugin that can only be Viewed by Logged in Users
- Add class to input form in login form
- Can’t Login to WordPress, No Data Received Error
- Unable to access website admin page – 500 error – how to change landing page
- how to restrict user login whenever if a user puts on hold by editing wp-login action?
- How to redirect to specific BLOG Dashboard (after login to Multi-Site)
- How to use a custom login template and still have it linked to the wp-login.php instead of creating a new page?
- Login again after profile update
- Redirect wp-login
- Show reCaptcha on Custom Frontend Login & Register Form [closed]
- Auto Login After Registration
- Problems with is_user_logged_in() | Function in WP
- Changed Wordress Address URL Accidently
- Is the login encrypted before it is sent? If so how to do I encrypt it the same way?
- What speaks against using a custom login.php / register.php to wordpress?
- Display count of new members registered today [closed]
- Login fail with no error
- WordPress login doesn’t work when using preview domain
- Prevent Subscriber Role to login
- How to check if user is logged into wordpress on non-wordpress pages
- How to authenticate a user with an external webservice
- Login user using wp_signon and WP_User object
- Login failed after cloning live wordpress site to local wampserver
- Log in with email but no password
- Remove a message in login page
- Login form not saving values when login incorrect
- Moving from one host to another – cannot access the dashboard
- I need to find which is the file that checks the DB for correct login (username, password)
- Abnormal activity at url /my-account/add-payment-method/
- Login Based on ip
- Blacklist and Whitelist on login
- URL Restrictions? Need only people who are logged in AND have a specific role (or roles) to access all pages for a site
- How to add custom authentication to wordpress login and register
- WordPress new version Version 5.3.2, user login not working after upgrade
- How the wordpress login and signup in react native app
- Link Users to external login db
- WordPress password reset not working
- Change WordPress Login URL to External URL
- User does not exist
- WordPress login is now working, it just refresh the page and nothing happens.
- New user password confirmation sending wrong URL
- is_logged_in not working after login
- wp_signon() does not authenticate user guidance needed
- How to login to wordpress via Cpanel
- Redirect to previous page after login
- How to password protect pages in WordPress
- User account activation links are lacking query strings
- Creating login for client / customer that will take them to customized part of site
- wp-login.php just refreshes the form fields
- Login just resets/reset password link also does not work
- Set user role on registration so can upload file to own media library area
- WP login pages redirect to homepage (cannot login)
- How to place wp-login.php in page or page template?
- Is there any reason why there’s no “login_header” action at the login page?
- How to get rid of the username of registration form in theme my login wp plugin?
- Register and Connect links: where are they located?
- Adding A Login Fail Notice
- Give user some feedback when they land on custom login page
- Trouble logging in and/or changing password
- Cannot login with correct username and password anymore
- How to limit user to login only once per session
- How to make WordPress keep me signed in? [duplicate]
- how to add custom word press regisration form in word press 3.5 with out module [closed]
- Warning-session start errors and cannot login to administer
- make a login system for site visitors
- Login and register by API
- Log in a user upon password reset?