Cannot Get URLS to Write To HTTPS

Thank You!!!

For the JP & CN sites, I have got everything working fine thank to your help and by doing a few extra SRs

I had to do a few things several times but all are loading securely!

Thank you all for your help!!!

You’re welcome!
Thanks for letting us know that it has worked for you.

I am having a similar issue. I changed the urls with Better Search Replace Pro and my page was secure and my image urls were https. Then when I save the page with Cornerstone the page shows as unsecure in Chrome and the image urls are back to http. @freedomdesign can you edit a page that @RueNel did a search and replace via Cornerstone and save - you do not need to make a change to the page - just edit via Cornerstone and then save. My guess is the mixed media issues will return. Please let me know.

Hi @jvedder

That is to do with how Cornerstone keeps URLs.

Do the BSR again, but two steps

eg:

Then check, edit in Cornerstone and resave, check again and you should be fine.

Hey There,

As soon as you completer did the search and replace, you should be able to edit the pages with no issues. You can either use Better Search and Replace plugin and I personally suggest WP Migrate DB plugin. There is a search and replace feature of this plugin that works well.

Hope this helps.

@RueNei

You are right, but it’s well known that with Cornerstone you need to do the search and replace twice,

If you don’t do at least this the image URLs rewrite back to http after editing in Cornerstone.

I am sure this will fix the problem @jvedder has. I have done this on 9 sites since this post, and tested it several times, rewriting both URLs is necessary.

@freedomdesign you are brilliant! I just did the rewrite http://www.myurl.com -> https://www.myurl.com in Better Search and Replace. I went into Cornerstone and made a change, saved, and my urls did not change back to http://myurl.com as they previously had been doing. I have been going crazy with this issue. I was unaware the Cornerstone stored the urls in this manner. @RueNel you all need to be aware of this issue. The fix is easy once you know what to do.

Hi there,

Cornerstone doesn’t store it like that, Wordpress is. Some may formatted like that, some aren’t. All data are saved as serialized record and Wordpress do the serialization and not Cornerstone. Cornerstone only uses the resources and functions given by its platform, which is Wordpress.

And yes, you may use http:\/\/ since search replace uses regex and not because it’s stored that way. https://stackoverflow.com/questions/4025482/cant-escape-the-backslash-with-regex

Glad its okay now.

Thanks!

@Rad - Awesome, thanks for explaining the details.

@jvedder glad you have it working!

You’re welcome. Glad we could help.

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