Support Home > Errors > Resolving Jetpack Connection Issues Caused by Dynamic Site URLs

Resolving Jetpack Connection Issues Caused by Dynamic Site URLs

There are certain website configurations, most commonly encountered on Bitnami sites hosted by Amazon Lightsail, which will cause problems with Jetpack’s ability to correctly determine your site URL. This can break your site’s connection to Jetpack.

To determine if this applies to you, check your wp-config.php file for the presence of this code:

define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/');
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/');

If that code is present, you’ll want to remove it and replace it with this code instead:

define('WP_SITEURL', '');
define('WP_HOME', '');

Be sure to swap out the example domain with your site’s actual domain.

This recommendation is consistent with Bitnami’s support documentation regarding the correct way to set up your WordPress site’s domain.

If your site is already in Jetpack’s Safe Mode after you’ve made this change, you’ll still need follow the prompts in the Safe Mode panel on your WP Admin dashboard to resolve the situation. Making this change in your wp-config.php file will ideally prevent the site from being placed into Safe Mode in the future, but will not take the site out of Safe Mode once it has already been activated.

Still having trouble?

Please contact support directly. We’re happy to lend a hand and to answer any other questions that you may have.

  • Table Of Contents

  • Categories

  • Contact Us

    Need more help? Feel free to contact us.