{"id":2025,"date":"2008-05-29T15:48:51","date_gmt":"2008-05-29T23:48:51","guid":{"rendered":"http:\/\/lee.org\/blog\/?p=2025"},"modified":"2008-05-29T15:48:51","modified_gmt":"2008-05-29T23:48:51","slug":"search-and-replace-wordpress-plugin","status":"publish","type":"post","link":"https:\/\/www.lee.org\/blog\/2008\/05\/29\/search-and-replace-wordpress-plugin\/","title":{"rendered":"Search and Replace WordPress Plugin"},"content":{"rendered":"<p>When I switched my permalinks from http:\/\/lee.org\/blog\/archives\/&#8230; to http:\/\/lee.org\/blog\/&#8230; I had several links in my blog with the old &#8220;archives&#8221; links. Thankfully, the <a href=\"http:\/\/scott.yang.id.au\/code\/permalink-redirect\/\">Permalink Redirect plugin<\/a> redirects hits to those pages with &#8220;303&#8221; errors. But I still needed to change the 30 or so posts with those old links. <a href=\"http:\/\/bueltge.de\/wp-suchen-und-ersetzen-de-plugin\/114\/\">Search and Replace WordPress Plugin<\/a> to the rescue. Of course I backed up my database first but it worked peachy keen, changing links en-mass. Here&#8217;s the search-replace strings I used. Doing it this way kept some direct links I had to the &#8220;archives&#8221; folder intact.<\/p>\n<p><code> href=\"http:\/\/lee.org\/blog\/archives\/2008  --&gt;  href=\"http:\/\/lee.org\/blog\/2008<br \/>\nhref=\"http:\/\/lee.org\/blog\/archives\/2007  --&gt;  href=\"http:\/\/lee.org\/blog\/2007<br \/>\nhref=\"http:\/\/lee.org\/blog\/archives\/2006  --&gt;  href=\"http:\/\/lee.org\/blog\/2006<br \/>\nhref=\"http:\/\/lee.org\/blog\/archives\/2005  --&gt;  href=\"http:\/\/lee.org\/blog\/2005<br \/>\n<\/code><br \/>\netc&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I switched my permalinks from http:\/\/lee.org\/blog\/archives\/&#8230; to http:\/\/lee.org\/blog\/&#8230; I had several links in my blog with the old &#8220;archives&#8221; links. Thankfully, the Permalink Redirect plugin redirects hits to those pages with &#8220;303&#8221; errors. But I still needed to change the 30 or so posts with those old links. Search and Replace WordPress Plugin to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-2025","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/2025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/comments?post=2025"}],"version-history":[{"count":0,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/2025\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/media?parent=2025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/categories?post=2025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/tags?post=2025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}