wp-admin redirecting to the https wordpress

  1. Open your WordPress website's root directory using an FTP client or file manager.

  2. Locate the wp-config.php file and edit it.

  3. Find the line that says "/ That's all, stop editing! Happy blogging. /" and add the following code just above it:

define('FORCE_SSL_ADMIN', true);
  1. Save the changes to the wp-config.php file.

  2. Now, open your WordPress dashboard.

  3. Go to Settings -> General.

  4. In the WordPress Address (URL) and Site Address (URL) fields, make sure that they start with "https://" instead of "http://".

  5. Scroll down and click on the Save Changes button.

  6. Finally, log out of your WordPress dashboard and log back in. Your wp-admin should now redirect to the HTTPS version of your website.