AWS Bitnami Server Domain URL Name Update

AWS Bitnami WordPress – Update Domain URL to HTTPS

This guide explains how to update your WordPress domain URL on an AWS Bitnami server, switching from HTTP to HTTPS using the full domain name.


When to Use This Guide

Use this process if:

  • Your WordPress site loads on HTTPS but still redirects to HTTP

  • The domain URL was changed (new domain or SSL enabled)

  • WordPress admin or frontend URLs are incorrect


Prerequisites

  • AWS Bitnami WordPress instance

  • SSH access to the server

  • A domain with SSL already configured


Step 1: SSH Into the Server

Connect to your AWS Bitnami instance using SSH.

Once connected, you should see a prompt similar to:

bitnami@ip-172-26-6-35:~$

Step 2: Navigate to the WordPress Directory

Run the following command:

cd /opt/bitnami/wordpress/

Verify the contents:

ls

Step 3: Edit the WordPress Configuration File

Open the WordPress configuration file:

sudo nano wp-config.php

Step 4: Update the Domain URL (HTTP → HTTPS)

Inside wp-config.php, locate or add the following lines above the line that says:

/* That's all, stop editing! */

Correct Example

Use HTTPS and the full domain name:

define( 'WP_HOME', 'https://sitename.com/' );
define( 'WP_SITEURL', 'https://sitename.com/' );

❌ Incorrect Example

Do not use incomplete or incorrect domains:
Do not remove spaces from beginning and end of brackets

(Common issues include missing SSL configuration, wrong domain, or mismatch with server setup.)


Step 5: Save and Exit Nano

  1. Press CTRL + X

  2. Press Y to confirm save

  3. Press ENTER


Step 6: Restart Bitnami Services

Apply the changes by restarting Bitnami:

sudo systemctl restart bitnami.service

Step 7: Verify the Change

  • Open your site in a browser

  • Confirm it loads on HTTPS

  • Log into WordPress Admin and check:

    • Settings → General → WordPress Address

    • Settings → General → Site Address

Both should now show the HTTPS URL.


Troubleshooting Tips

  • Clear browser cache or test in an incognito window

  • Confirm SSL is properly installed on the server

  • Ensure there are no conflicting redirects in:

    • .htaccess

    • Cloudflare / Load Balancer


Summary

  • Edit wp-config.php

  • Update WP_HOME and WP_SITEURL to HTTPS

  • Restart Bitnami services

This ensures WordPress consistently uses the secure domain across the site.