AWS re:Post을(를) 사용하면 다음에 동의하게 됩니다. AWS re:Post 이용 약관

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

1분 분량
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 공식
AWS 공식업데이트됨 2달 전
댓글 없음

관련 콘텐츠