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

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南