{"id":608,"date":"2012-05-11T13:03:51","date_gmt":"2012-05-11T13:03:51","guid":{"rendered":"http:\/\/www.sitekickr.com\/blog\/?p=608"},"modified":"2012-05-11T13:41:30","modified_gmt":"2012-05-11T13:41:30","slug":"wordpress-upgrades-introduce-404s","status":"publish","type":"post","link":"https:\/\/www.sitekickr.com\/blog\/wordpress-upgrades-introduce-404s\/","title":{"rendered":"WordPress upgrades can introduce new 404s"},"content":{"rendered":"<p>I don&#39;t know how, when, or why, but it on a recent WordPress upgrade for one of our sites, we had noted a good number of new 404s.<\/p>\n<p>It appears that some of the &quot;base URLs&quot; had changed at some point along the line.<\/p>\n<p>Luckily, we have the <a href=\"http:\/\/httpd.apache.org\/docs\/current\/mod\/mod_rewrite.html\">Apache RewriteRule<\/a> on our side. Here&#39;s a few rules that helped reduce 404s and direct search engines and users appropriately:<\/p>\n<p><code>RewriteRule ^\/blog\/categories\/(.*)&nbsp;&nbsp;&nbsp; \/blog\/category\/$1 [L,R=301]<br \/>\n\tRewriteRule ^\/blog\/(rss|RSS)&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \/blog\/feed\/rss [L,R=301]<\/p>\n<p>\tRewriteCond %{QUERY_STRING} &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; getTags=(.*)<br \/>\n\tRewriteRule ^\/blog\/search&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \/blog\/tag\/%1?&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [R=301,L]<br \/>\n\t<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I don&#39;t know how, when, or why, but it on a recent WordPress upgrade for one of our sites, we had noted a good number&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"amp_status":""},"categories":[41,19,103],"tags":[118],"_links":{"self":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts\/608"}],"collection":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/comments?post=608"}],"version-history":[{"count":2,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts\/608\/revisions"}],"predecessor-version":[{"id":610,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts\/608\/revisions\/610"}],"wp:attachment":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/media?parent=608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/categories?post=608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/tags?post=608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}