How do I update a Bitnami WordPress website's site and home URLs in Lightsail?

1 minute read
0

I want to update a Bitnami WordPress website's site and home URLs in Amazon Lightsail.

Resolution

To update a Bitnami WordPress website's site and home URLs, complete the following steps:

  1. Use SSH to connect to Lightsail.

  2. Open the wp-config.php file from the main application configuration directory:

    vi /opt/bitnami/wordpress/wp-config.php
  3. Locate the WP_SITEURL and WP_HOME definitions:

    define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/');
    define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/');
  4. Edit the domain name in the WP_SITEURL and WP_HOME definitions:
    Note: Replace example_domain_name with your updated URL.

    define('WP_SITEURL', 'http://example_domain_name/');
    define('WP_HOME', 'http://example_domain_name/');\
  5. Save the file.

  6. To verify the change, open the site with the updated URL. If the site opens, then the URLs are updated.

AWS OFFICIAL
AWS OFFICIALUpdated a month ago