Wordpress admin URL is being redirected to other domain

Many time you will notice that when you are accessing a WordPress URL it is being redirected to some other domain, it’s quite frustrating sometimes, here are the following methods through which you can solve this issue.

Method 1: Examine redirection rules in the .htaccess file.

  1. Open .htaccess file from the site root folder
  2. Detect the redirection code, if you find any redirection code just delete it and save the changes.

 

Method 2: Modify the wp-config.php file.

  1. Open wp-config.php file from site root folder.
  2. Detect the below line.
define( 'WP_SITEURL', 'https://www.example.com')

define( 'WP_HOME', 'https://www.example.com');          

 

You just have to replace this URL to the actual one.

  1. Save the changes you have made.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

SQL server- network related or instance-specific error happened while connection establishing

  Instance-specific or network related error happening while connecting to SQL server   Please...

OleDB connection string examples

OleDB connection string examples MS Access (Jet) "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA...

Do you allow custom COM components?

Do you allow custom COM components? We are not offering to install the custom COM components...

Error when accessing a WCF services

Error when accessing a WCF services Error when accessing a WCF service: "IIS specified...

How to cache static contents to client with UseMaxAge?

You can consider to caches static contents to the client with UseMaxAge if your website has too...

Powered by WHMCompleteSolution