{"id":7364588,"date":"2016-05-10T06:41:57","date_gmt":"2016-05-10T06:41:57","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/how-to-replace-http-to\/"},"modified":"2016-08-31T17:27:15","modified_gmt":"2016-08-31T17:27:15","slug":"how-to-replace-http-to","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/how-to-replace-http-to\/","title":{"rendered":"How to replace http:\/\/ to \/\/"},"content":{"rendered":"<p>Hello Experts,<\/p>\n<p>I want to replace all theme file URL http:\/\/ to \/\/<\/p>\n<p>From<br \/>\n&lt;img src=&#8221;http:\/\/example.com\/image.jpg&#8221; alt=&#8221;image&#8221;&gt;<\/p>\n<p>To<br \/>\n&lt;img src=&#8221;\/\/example.com\/image.jpg&#8221; alt=&#8221;image&#8221;&gt;<\/p>\n<p>Automatically Change All URL from HTTP:\/\/ to \/\/<\/p>\n<p>Is there any script which one I can add into function.php and it&#8217;ll work accordingly.<\/p>\n<p>I get &#8220;insecure content&#8221; warnings from some of my content<br \/>\nWe are probably loading content (such as images) with a URL that starts with &#8220;http:&#8221;. Take that bit away, but leave the slashes, e.g. \/\/www.example.com\/image.png; our browser will load the content, using HTTPS when your page uses it.<\/p>\n<p>Thanks,<br \/>\nGroup Of Oceninfo<\/p>\n","protected":false},"template":"","class_list":["post-7364588","topic","type-topic","status-publish","hentry","topic-tag-function-php","topic-tag-http","topic-tag-https","topic-tag-url"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7364588","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7364588\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7364588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}