Dynamic IP still being used by some Pages on a bitnami WordPress Website after allocating a static IP aka Elastic IP to the EC2 Domain.

0

I recently moved hosting from Siteground into AWS EC2 Instance with a Bitnami Installation. It worked like a charm but at the time I as still using the default Dynamic IP, then I got a Static (Elastic) Ip, and set it up letting AWS write the new Records for the new IP, then I noticed the email for the WordPress Admin User was using the old IP, example (user@XX.XX.XX.XX) where XX the old Dynamic Address. So I checked the site and some links and images were still using the old IP, so I manually changed the dynamic IP Address to the domain, since is currently working fine with the New Elastic IP. Since is a small site I figured, it will be easier to manually change them than to try to figure out the commands for Find & Replace. So now most of the website is using the domain which correctly is using the Elastic Ip. But here is my problem, Some pages are still using some of the old Dynamic Ip and since those pages are not accessible to directly modify because they are Account created by a Plugin, how can I make sure all the pages are using the domain instead of the old Dynamic Ip. I tried to clear the Cache using Total Cache but that didn't worked. Any input will be appreciated. Thank you.

asked 3 months ago229 views
1 Answer
0
Accepted Answer

Hello.

Are your Wordpress URL and site URL set to old IP addresses?
https://developer.wordpress.org/advanced-administration/upgrade/migrating/

Also, if the image is uploaded from WordPress, the URL information may be recorded in a database etc.
I think URL information is probably also recorded in a table called "wp_posts", so I think it would be a good idea to rewrite that.
https://codex.wordpress.org/Database_Description

I did a little research and found that there is a plugin for rewriting URLs, so please consider using that.
https://wordpress.org/plugins/better-search-replace/

profile picture
EXPERT
answered 3 months ago
profile pictureAWS
EXPERT
reviewed 3 months ago
  • Yes, for the WordPress URL and Site URL I already updated them on the Database and now they have the correct domain name.

    I will take a look at the wp_post and check if there is any instances of the old ip. Is there a way to search and replace on the DB? I will take a look at the rewrites plugin and report back.

    Thank you for the info.

  • The plugin did the trick, there were still hundreds of instances where the old dynamic Ip was still used and just replace it with the domain and everything works. Thank you

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions