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 Disable WordPress Pingback to Prevent Pingback Brute Force and DDoS Attacks?

WordPress has become the most popular CMS and it continuously increases its market share. On the...

How to Migrate / Transfer WordPress Website from to AccuWeb Hosting?

To transfer your website to a self-hosted WordPress website, first you will need a...

How to uninstall WordPress completely from cPanel?

You may require to remove Wordpress installation if you have installed it on an incorrect Path or...

How to enable Redis Object Cache on your free WordPress hosting?

If you have object caching enabled on your WP Total Cache plugin, disable it from you WP...

How to schedule post publishing in WordPress?

In this article, we will show you how to schedule posts in WordPress Using this function you can...

  • 0 Users Found This Useful

Was this answer helpful?