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.

已提问 4 个月前247 查看次数
1 回答
0
已接受的回答

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
专家
已回答 4 个月前
profile pictureAWS
专家
已审核 4 个月前
  • 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

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则