How to fix WordPress admin redirection to a different domain? Print

  • 0

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.

Was this answer helpful?

« Back
Sign up for a newsletter