{"id":436,"date":"2008-07-27T12:14:34","date_gmt":"2008-07-27T17:14:34","guid":{"rendered":"http:\/\/www.mccambridge.org\/blog\/?p=436"},"modified":"2022-09-11T00:40:38","modified_gmt":"2022-09-11T00:40:38","slug":"howto-fix-404-errors-when-upgrading-to-wordpress-26-on-windows-iis","status":"publish","type":"post","link":"http:\/\/www.mccambridge.org\/blog\/2008\/07\/howto-fix-404-errors-when-upgrading-to-wordpress-26-on-windows-iis\/","title":{"rendered":"HowTo: Fix 404 Errors When Upgrading to WordPress 2.6 on Windows \/ IIS"},"content":{"rendered":"

This post is only for WordPress users who have upgraded to 2.6 on their Windows \/ IIS server and other users who use “index.php” in their permalinks and are encountering 404 errors after the upgrade.<\/p>\n

The problem is already known to the WordPress folks and fixed, as described on the WordPress forums<\/a>.<\/p>\n

I’m posting this just to help out those Googling for answers, as I just recently was after upgrading the Enlight website and watching them go up in flames \ud83d\ude42<\/p>\n

To quote the WordPress support page, the bug is known and fixed for WordPress 2.6.1.\u00a0 In the meantime, here are temporary fixes.\u00a0 I verify that #2 restored my Windows \/ IIS 6.0 installation, BUT, I want to stress that this is a temporary<\/em> solution only, as you will be changing<\/em> your permalink structure, which is contrary to the very nature of “permalinks”.\u00a0 So, I recommend #3, which I also verify works, as it will leave your permalinks (which other sites are intended to be using) intact.<\/p>\n

    \n
  1. If you’re using Linux\/Apache on your webserver, you don’t really need the index.php anyway. Try removing it. The index.php thing was only meant for IIS servers, which don’t support mod_rewrite.<\/li>\n
  2. If you need\/want the index.php to be there, then on the Settings->Permalinks screen, add some values in for the category and tag bases. The words “category” and “tag” will do just fine. As long as they are not blank, this should work around the bug.<\/li>\n
  3. (For advanced users only) If you want to patch the problem yourself, there is a fix available in trac ticket 7306<\/a>.\u00a0 (Colin adds: The fix here is to integrate the 3 modified files from changeset 8365<\/a>.\u00a0 If you don’t know how to do that, I strongly<\/strong> recommend you stick to option #2 until WordPress 2.6.1 comes out.)<\/em><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"

    This post is only for WordPress users who have upgraded to 2.6 on their Windows \/ IIS server and other users who use “index.php” in their permalinks and are encountering 404 errors after the upgrade. The problem is already known to the WordPress folks and fixed, as described on the WordPress forums. I’m posting this […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,7],"tags":[78,79,50,71,72],"_links":{"self":[{"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/posts\/436"}],"collection":[{"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/comments?post=436"}],"version-history":[{"count":1,"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/posts\/436\/revisions"}],"predecessor-version":[{"id":1571,"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/posts\/436\/revisions\/1571"}],"wp:attachment":[{"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/media?parent=436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/categories?post=436"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.mccambridge.org\/blog\/wp-json\/wp\/v2\/tags?post=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}