URL Issue after going live

I understand this has been discussed before but I am not having any luck with a permanent fix. When building the website we are referencing the IP address such as “216.198.212.118/~kruzinusa/”. Once we go live we have to update the URL’s to the domain name “https://www.kruzinusa.com/”. The issue we are having is Cornerstone reverting the domain name back to the ip address. I will go into a page, re-upload the images that were referencing the IP so that they use the domain name. A week will go by and I need to make a change and after cornerstone loads the images break and are referencing the IP again. I have scanned the database and manually updated links also using the Better Search and Replace plugin. Cornerstone still wants to revert the domain name to the IP. What can we do to prevent this and not have to worry about it down the road? I have attached an image of an example.

Hi There,

Please try installing this plugin: https://wordpress.org/plugins/better-search-replace/

After that replacing all the old URLs with the new URLs.

Let us know how it goes!

Do you even bother to read the whole thing I wrote? I specificly stayed the I had already used the Better Search and Replace plug-in. Please take a little bit more time into reading the issue. This is an ongoing issue and clients are getting tired of it.

Thanks

Hi There,

If you have run Better Search and replace and it did not work, in this case, you will need to access edit page, click on the image elements and re-add them.

Hope it helps

Seriously, does anyone read the full post? I already did that too with no luck!

Hello @turnkeydigital,

Please accept my personal apologies for confusion. On live website do you have any page wherein I can test or see domain name rolled back to IP address? I checked few pages on live website (kruzinusa.com) and don’t see IP address entries up there. Also will it be possible for you to share login details in a secure note for us to take closer look?

Thanks.

I have added a private note with login info. If you go to https://www.kruzinusa.com/gallery/ and edit the page in Pro and right click and inspect an image you will see it referencing the IP address. Once you make any changes and save the page the images break and display the IP on the frontend of the website. And from there I have to go back in and re add the images. I have done this at least 4 times since we went live with the site. Cornerstone just does not want to let go of the IP. This isn’t the only site we have issues on either.

Hello There,

Thank you for the clarifications. I have logged in to your site and have resolved the issue. I installed WP Migrate DB and use the search and replace feature of this plugin to replace the IP with your domain name. I am not sure if you are using a caching plugin or that your server has a database caching. Please clear all of the caches and test your site.

Hope this helps.

I have also been experiencing this problem with several of my client sites, and it was very inconvenient. You should really look into a way of correcting this.

The biggest problem in my eyes is that the issue seems to be solved when it isn’t. I’ve very accustomed to conducting Search+Replace fixes to sites after migrating, even for content in CSS and other places. By using Better Search and Replace I could successfully rid the site of all instance of the bad URL’s. But, after each time doing search+replace, the client would edit the page and the bad links would return in the Cornerstone editor, and then get pushed to the published page on save, putting back in the same problem. Because of this, one client went two months without realizing that the content on every page of their site had been reverted to the dev URLS.

The clients are using X-Pro 1.1.1
I failed to fix it with Better Search and Replace 1.3.1

I solved it by using WP Migrate DB Version 1.0.2 and the Search+Replace feature, and flushing my server cache before and after.

I’m sure that many people are experiencing the same problem. Hopefully you can come up with a strategy to avoid it in the future.

Hello There,

Thanks for sharing this. The urls always happen when you migrate your site from one url to another. That is why it is very important that you use a great 3rd party plugin to handle the migration process. By the way, WP Migrate DB is my recommendation because based on experience, it will not leave one single database entry with the one you were searching and replacing for just like what happen when you used Better Search and Replace plugin. Better Search and Replace plugin only checks on the page/post contents and not on the post meta which is where most of the Cornerstone data is store.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.