Thanks to Marc’s comment on my last post, fixing Permalinks is easier that I originally thought for WordPress 2.6. Marc cites this post on the WordPress support forum. Whether you followed my instructions from my last post or not, the fix is the same:
- Re-upload the original rewrite.php file from 2.6’s latest.tar.gz to your wp-includes directory.
- From the dashboard, set permalinks to “Default” and Save it.
- From the dashboard, set permalinks to “Custom Structure” of your choice and Save it.
Mine is now: /%year%/%monthnum%/%day%/%postname%/
(Previously: /index.php/%year%/%monthnum%/%day%/%postname%/ which does not work.)
For the record, search engines that indexed links with the /index.php/{etc.} structure still resolve properly.
Please leave a comment if it doesn’t work for you.
Big thanks to Marc for the comment.
UPDATE:Please see Part II, which includes links to the official WordPress support forum.
After trying everything from disabling plugins, to re-creating permalinks, to removing my .htaccess file, I still could not restore my permalink custom structure after upgrading WordPress from version 2.5.1 to 2.6. I then posted a new topic in the forums for help and continued to search for answers.
Finally, using several posts and a hack of my own at the end, I came up with the following procedure which fixed it for me:
1. Upload this file to your wp-includes directory:
Save this link as “rewrite.php” and then upload it to your /wp-includes directory.
2. From the dashboard, set permalinks to “Default” and Save it.
3. From the dashboard, set permalinks to “Custom Structure” of your choice and Save it.
Mine is: /index.php/%year%/%monthnum%/%day%/%postname%/
4. The above fixed it, but I saw some errors at the top of each of my pages pointing to /wp-includes/plugin.php – so I added the following line of code which is a hack to suppress the errors:
error_reporting(0); Put this line at the top, just below the opening <?php tag.
That’s it. Please let me know if you have any problems by leaving a comment below.
The latest Nginx for Windows builds that I built using Cygwin are located here: Nginx For Windows.
Native Nginx Windows builds are available at http://nginx.net
Nginx 0.7.6 for Windows, nginx 0.6.32 for Windows, and nginx 0.5.37 for Windows were built on Vista Ultimate 32-bit and are known to work on Windows Vista, Windows XP Professional and Windows 2000 Professional.
nginx was compiled using Cygwin. If you have any other instance of cygwin1.dll on your system, you may have a conflict that won’t let you run nginx. Remove any Cygwin1.dll files and it should work.
If you find it useful, please use the PayPal Donate link on the sidebar to give a few cents. Thanks.
Download nginx 0.7.6 for Windows, nginx 0.6.32 for Windows, nginx 0.5.37 for Windows