Tutorials
E
Elementor
16 tutorials
A
AWS Lightsail
Beginner-friendly AWS Lightsail guides
12 tutorials
W
WordPress
12 tutorials
View all tutorials →
Tools
W
Website Platforms & Tools
Tools to build, host, and optimize fast, reliable, and professional websites.
8 tools
W
Web Hosting Providers
Fast, secure web hosting with reliable uptime to power and scale your website.
6 tools
V
VoIP / Communications
Business phone tools with virtual numbers, call routing, and auto-attendants for a professional pres
4 tools
W
Website Security
Security tools to protect your site from threats, malware, and unauthorized access.
2 tools
B
Branding & Logo Design
Create a strong brand identity with custom logo and professional design services.
1 tool
View all tools →

How to Fix WordPress Images Loading From Server IP by Updating Site URL (AWS + Bitnami)

Gerry Manzari Written by Gerry Manzari · January 5, 2026 · 1 min read

If your WordPress site on AWS Lightsail (Bitnami) starts loading images or assets from an IP address instead of your domain, the issue is almost always incorrect WordPress URL settings.

This commonly happens on AWS Lightsail with Bitnami WordPress, especially after:

  • Cloning a site
  • Migrating environments
  • Creating a dev or staging instance
  • Restoring from a snapshot

Issue:

You might notice image URLs like this:

PLAINTEXT
http://44.196.xx.xx/wp-content/uploads/...

Cause:

WordPress stores its base URLs in the database:

  • siteurl
  • home

If these are set to 127.0.0.1 or an IP, WordPress will rewrite image URLs automatically — even after you re-upload them.

How To Resolve:

1. SSH into your Lightsail instance

BASH
ssh -i "C:\Users\Name\Downloads\your_amazon_pem_file.pem" bitnami@1.1.1.1

Modify the path to where your .pem file is located. Replace 1.1.1.1 with your actual IP address.

2. Check current WordPress URLs

BASH
sudo /opt/bitnami/wp-cli/bin/wp option get siteurl --allow-root
sudo /opt/bitnami/wp-cli/bin/wp option get home --allow-root

If you see http://127.0.0.1, that’s the problem.

3. Update them to your domain

BASH
sudo /opt/bitnami/wp-cli/bin/wp option update siteurl "https://your-site-url.com" --allow-root
sudo /opt/bitnami/wp-cli/bin/wp option update home "https://your-site-url.com" --allow-root

4. Confirm

BASH
sudo /opt/bitnami/wp-cli/bin/wp option get siteurl --allow-root
sudo /opt/bitnami/wp-cli/bin/wp option get home --allow-root

Clear Cache

If you’re using Elementor, go to ElementorToolsRegenerate Files & Data and clear your cache.
If you’re not using Elementor, clear your WordPress cache, server cache, and any CDN cache you have enabled. This ensures no old CSS or media URLs are still pointing to the IP address.

NOTE: While this may resolve issues moving forward, existing content