You should read the codex on Administration Over SSL and also shouldn’t edit the core wordpress files as it isn’t advised and your edits get overwritten on update.
You should define FORCE_SSL_ADMIN in your wp-config.php
define('FORCE_SSL_ADMIN', true);
Related Posts:
- Chrome 83 doesn’t connect WP login page after update from http to https on localhost
- I renamed my server from http to https and now I can’t login
- https to https problem – 404 and can’t login
- Changed from HTTP to HTTP, can login no longer login
- WordPress keeps redirecting to an unsecure connection?
- 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
- How can I create a separate blog that is private?
- 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?
- WordPress/Buddypress login theme function [closed]
- How to redirect to specific BLOG Dashboard (after login to Multi-Site)
- WordPress login problem
- 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?
- Login fail with no error
- WordPress login doesn’t work when using preview domain
- Input sanitation
- 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/
- woocommerce store login not working at first time
- Login Based on ip
- Blacklist and Whitelist on login
- How is it possible to current user info on page in WordPress?
- URL Restrictions? Need only people who are logged in AND have a specific role (or roles) to access all pages for a site
- Trouble when I try to connect to WordPress
- 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
- Set logged in user based on API response
- 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
- Log in to wordpress after executing another form function
- Disabling the login form and redirect users on logout without headers sent php warning
- A way to redirect users when they log in based on their current page
- How can I have customers log in using ONLY customer number? No password
- Problem with footer and login
- Webpage not found upon entering wrong username and password on custom login form?
- changing WordPress login page
- Where do I find “log in” and “register” link which are located on the top right corner?
- Check to see if there a wordpress user account and create one if not outside of wordpress
- User not logged first time I open the homepage
- How to force login after user browses for a few minutes or browses a few pages?
- WordPress Login Box horizontal at the top.
- Login from Mobile Phone
- 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
- Entire WordPress content disappears
- Remove login link from Reset Password-screen