Solution to WordPress Showing the Wrong Domain

If you have a WordPress site with multiple domains (or multiple versions of the same domain, such as with or without www., you might notice your browser redirecting to the to wrong URL.

If you installed WordPress using http://WWW.yourdomain.com rather than http://yourdomain.com, WordPress may have incorrect settings for what it believes to be your site's true URL.

As a result, it keeps redirecting you to the the original domain.

You can correct this through WordPress’s General Settings, as shown below.
wordpress installation

If you prefer or if the above doesn't work, you can also change these settings by adding the following lines to your app's wp-config.php file (change example.com to your domain):

define('WP_SITEURL', 'http://example.com');
define('WP_HOME', 'http://example.com');
Alert: For Control Panel Help & Tutorials, click here: Panel Tutorials
  • 0 Usuários acharam útil
Esta resposta lhe foi útil?

Artigos Relacionados

How to Back Up WordPress with BackupBuddy

BackupBuddy is one of the most popular premium backup plugins available for WordPress....

How to Change the Database Password for WordPress

If you have migrated your WordPress app, you might need to change your MySQL database password by...

How to Check WordPress Plugins and Themes for Vulnerabilities

Vulnerable plugins and themes are the leading causes of WordPress compromises. To ensure the...

How to Configure Protect in WordPress

Protect is a key part of WordPress's Jetpack plugin that helps block brute force attacks against...

How to Ensure WordPress Displays Correctly after Migration

After migrating your WordPress site, either manually or using a service such as ManageWP, you...