{"id":988,"date":"2019-11-28T10:23:56","date_gmt":"2019-11-27T22:23:56","guid":{"rendered":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=988"},"modified":"2019-11-28T10:23:56","modified_gmt":"2019-11-27T22:23:56","slug":"globally-changing-urls-in-wordpress-posts","status":"publish","type":"post","link":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=988","title":{"rendered":"Globally changing URLs in WordPress posts"},"content":{"rendered":"<p>Over the decades my WordPress site has had a few different URLs, and I thought I had managed to keep them all up to date as I changed sites. Using owasp-zap (under Kali) to test my site it did manage to find five URLs remaining referring to an older site location.<\/p>\n<p>Plus I wished to change all http:\/\/ references to https:\/\/ references as that is the way the world is moving and I am using a letsencrypt certificate now so https works. Apart from just being a good idea it will also stop all the alerts from owasp-zap about mixed content pages caused mainly by images which were embedded back before I used https, which will become an issue in the future as modern browsers are beginning to refuse to serve embedded http content from https pages.<\/p>\n<p>There are a lot of WordPress plugins that promise to perform global changes; supprisingly two of the higher ranking ones just did not work at all for me.<\/p>\n<p>Then I found the &#8220;Velvet Blues Update URLs&#8221; plugin. It only permits the changing of URLs, but that is all I need. And it just works.<\/p>\n<p>Simply install the WordPress plugin &#8220;Velvet Blues Update URLs&#8221;, activate it. Under the Tools menu there is now an option to &#8220;Update URLs&#8221;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over the decades my WordPress site has had a few different URLs, and I thought I had managed to keep them all up to date as I changed sites. Using owasp-zap (under Kali) to test my site it did manage &hellip; <a href=\"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=988\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-988","post","type-post","status-publish","format-standard","hentry","category-personal"],"_links":{"self":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=988"}],"version-history":[{"count":2,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/988\/revisions"}],"predecessor-version":[{"id":990,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/988\/revisions\/990"}],"wp:attachment":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}