Setting WP_HOME and WP_SITEURL in the wp-config.php File

Occasionally you may experience problems where the WordPress Address and Site Address settings in WordPress aren't working correctly.

When this happens, it can affect license activation in All in One SEO Pro as well as other settings and features.

The WordPress Address and Site Address settings can be found by going to Settings > General on any WordPress site. These are typically set when you first install WordPress and aren't usually changed once a site is live.

You can read about these setting in the WordPress documentation here.

If you're experiencing an issue with these settings, our Support team may direct you to set WP_HOME and WP_SITEURL in the wp-config.php file found on your server.

You should reach out to your hosting provider to confirm that they aren't dynamically rewriting WP_HOME and WP_SITEURL for some reason.

You can read about WP_HOME and WP_SITEURL in the WordPress documentation here.

To do this, follow these steps:

  1. Connect to your server using FTP or through the file manager on your hosting account. We have an article on how to FTP to your server here.
  2. Navigate to the directory where WordPress is installed. You should see a file called wp-config.php.
  3. Open the wp-config.php file using a plain text editor.
  4. Check this file to see if you have the two lines below:

    define(‘WP_HOME','https://mydomain.com/'); define(‘WP_SITEURL','https://mydomain.com/');
    NOTE: (mydomain.com will be replaced by the URL of your website)
  5. If you see these lines, make sure they correctly match the URL for your site including WWW or non-WWW and HTTP or HTTPS.
  6. If you don't see these lines, then add them before the line that says /* That's all, stop editing! Happy publishing. */.
  7. Save the file to your server.

If you still experience problems, then reach our to our Support team and they'll be happy to assist you.