- Newest
- Most votes
- Most comments
The issue you're experiencing with disappearing images on your WordPress site hosted on AWS Lightsail is a known problem that can occur for various reasons. Here are some potential causes and solutions to consider:
-
URL Settings: Ensure that both the WordPress Address (URL) and Site Address (URL) in your WordPress General Settings are correctly set to your domain name (connectcurator.ai).
-
wp-config.php File: Check if the WP_SITEURL and WP_HOME constants in your wp-config.php file are correctly defined with your domain name. If they're not present, you may need to add them.
-
Database Issues: There might be a script or cron job running that's reverting changes in your database, causing the image URLs to switch back to the IP address instead of using the domain name. This can lead to broken images due to mixed content and SSL certificate issues.
-
Plugin or Theme Conflicts: Some plugins or theme functions might be overriding your URL settings. Review your installed plugins and theme for any that might be causing this behavior.
-
.htaccess File: Ensure it's correctly configured and doesn't contain any problematic redirects.
-
Caching: Clear your browser cache and local DNS cache, as sometimes old cached information can cause this issue to persist.
To resolve this issue, you can try the following steps:
- Double-check your WordPress and site URL settings in the admin panel.
- Verify the wp-config.php file for correct domain settings.
- Use a search and replace plugin to find and replace all instances of the static IP with your domain name in the database.
- Review and potentially disable plugins one by one to identify if any are causing the issue.
- Check your .htaccess file for any unusual redirects.
If the problem persists after trying these solutions, you may need to investigate further or seek assistance from AWS support to identify the root cause of the automatic image removal or URL changes. Always remember to backup your site before making any significant changes to your WordPress installation or database.
Sources
AWS Lightsail Wordpress page doesn't retrieve the pictures after one or two days. Why? | AWS re:Post
Domain is changing to Static IP automatically | AWS re:Post
Static IP address being used instead of domain - getting SSL error | AWS re:Post
