redirect wordpress core login

To redirect the WordPress core login, you can follow these steps:

  1. Open your WordPress website's root directory using an FTP client or File Manager in your hosting control panel.

  2. Locate the wp-config.php file in the root directory and open it for editing.

  3. Add the following code snippet just before the line that says "/ That's all, stop editing! Happy blogging. /":

define('RELOCATE', true);
define('WP_HOME', 'http://newdomain.com');
define('WP_SITEURL', 'http://newdomain.com');

Replace 'http://newdomain.com' with the URL where you want to redirect the WordPress login.

  1. Save the changes and upload the modified wp-config.php file back to your server.

  2. Now, you need to access your WordPress website using the new URL (http://newdomain.com). This will update the WordPress settings and database to reflect the new URL.

  3. After accessing your website using the new URL, you can remove the code snippet added in step 3 from the wp-config.php file.

By following these steps, you can redirect the WordPress core login to a different URL.