How to fix WordPress admin redirection to a different domain?

It is annoying when you try to access your WordPress admin page and it redirects to a different domain. Here, we have mentioned a few steps which may help you to overcome this issue.

Solution - 1 check for redirection rules in .htacess file.

  1. Login to your cPanel account.

  2. Click on the file manager.

    File Manager

  3. Open the public_html directory.


  4. Right-click on the .htaaccess file and click on the edit. If there is any code for redirection rule remove it and save the file.

    htacess edit

Solution - 2 Update WordPress Config File.

  1. Login to your cPanel account.

  2. Open the file manager.

  3. Open the public_html directory and edit the wp-config file with the below lines.

    define( 'WP_SITEURL', '');
    define( 'WP_HOME', '');	
    Note: replace the htttps:// with your actual URL.


  4. Click on save changes button once you have added the lines.

Related Articles

How to Change WordPress Admin Username through MySQL Database?

This article will provide you the step by step guidance on how to change the WordPress admin...

How to Upload a WordPress theme?

Sometimes you are required to upload and install a WordPress theme manually, especially when you...

How to Migrate / Transfer your WordPress Website to AccuWeb Hosting Server?

Open your cPanel account and under Files section, locate Backup Wizard. Click on the Backup...

How to Leverage Browser Caching of WordPress Website via .htaccess?

If you've ever checked your WordPress website in Performance Tools such as Google PageSpeed...

  • 0 Users Found This Useful

Was this answer helpful?