You must have faced this issue when accessing your WordPress admin page, which redirects to a different domain. So, in this article, we have listed some solutions that may help you resolve this issue.

Solution 1: Check for Redirection Rules in the .htaccess File

Step 1: Log in to your cPanel account.

Step 2: Click on File Manager.

Step 3: Open the public_html directory.

public_html

Step 4: Right-click on the .htaccess file and click on Edit. If there is any code for the redirection rule, remove it and save the file.

htacess edit

 

Solution 2: Update WordPress Config File

Step 1: Log in to your cPanel account.

Step 2: Open the File Manager.

Step 3: Open the public_html directory and edit the wp-config file with the lines given below:

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

Note: Replace htttps://www.example.com with your actual URL.

wp-config

Step 4: Click the Save Changes button once you have added the lines.

Was this answer helpful? 0 Users Found This Useful (0 Votes)