{"id":177,"date":"2008-07-25T01:24:04","date_gmt":"2008-07-25T06:24:04","guid":{"rendered":"http:\/\/www.jasonmorrison.net\/content\/?p=177"},"modified":"2008-07-25T01:24:04","modified_gmt":"2008-07-25T06:24:04","slug":"problem-with-wordpress-26-upgrade-404-errors","status":"publish","type":"post","link":"http:\/\/www.jasonmorrison.net\/content\/2008\/problem-with-wordpress-26-upgrade-404-errors\/","title":{"rendered":"Problem with WordPress 2.6 upgrade &#8211; 404 errors"},"content":{"rendered":"<p>Just a quick note &#8211; if you&#8217;re about to install the WordPress 2.6 upgrade, make sure you don&#8217;t just check your homepage and then call it a night.  On a site I help manage for some friends I ran into a huge bug &#8211; <a href=\"http:\/\/www.jasonmorrison.net\/content\/2008\/keep-your-wordpress-site-from-being-hacked-with-automatic-upgrades\/\">the upgrade went smoothly<\/a>, the homepage looked fine, but all the posts returned 404 errors.<\/p>\n<p>It&#8217;s apparently very common if you are using &#8220;index.php&#8221; in your URL structure, which many sites use because IIS doesn&#8217;t have an equivalent of Apache&#8217;s mod_rewrite or because their host doesn&#8217;t allow mod_rewrite for some reason.<\/p>\n<p>The solution <a href=\"http:\/\/wordpress.org\/support\/topic\/188977\">can be found in this thread<\/a> on the WordPress support forums. Basically the solution is to get the latest copy of rewrite.php and copy over the version for 2.6.  Here&#8217;s <a href=\"http:\/\/blog.kaizeku.com\/wordpress\/wordpress-26-permalink-bug-fixes\/\">another post with a technique for category and tag pages<\/a>.<\/p>\n<p>There&#8217;s a lot to like about WordPress&#8230;  the open-source codebase, the templating system, the extensible plugin architecture.  But I&#8217;m starting to feel like I&#8217;m squeezed between a rock and a hard place &#8211; delay an upgrade and you <a href=\"http:\/\/www.jasonmorrison.net\/content\/2008\/what-i-did-when-my-site-showed-up-as-a-bad-link\/\">run the risk of getting hacked<\/a>;  go forward with an upgrade and you run the risk of throwing 404s for your entire site.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just a quick note &#8211; if you&#8217;re about to install the WordPress 2.6 upgrade, make sure you don&#8217;t just check your homepage and then call it a night. On a site I help manage for some friends I ran into a huge bug &#8211; the upgrade went smoothly, the homepage looked fine, but all the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[19],"tags":[318,319,110,250],"class_list":["post-177","post","type-post","status-publish","format-standard","hentry","category-blog","tag-bug","tag-error","tag-wordpress","tag-wordpress-automatic-upgrade"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts\/177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/comments?post=177"}],"version-history":[{"count":1,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts\/177\/revisions"}],"predecessor-version":[{"id":178,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts\/177\/revisions\/178"}],"wp:attachment":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/media?parent=177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/categories?post=177"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/tags?post=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}