WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks broken after 2.6 upgrade - Please Help! (11 posts)

  1. Kevin Worthington
    Member
    Posted 5 years ago #

    After upgrading to 2.6, clicking on a Post Title brings me to the 404. I tried rebuilding the permalinks, which regenerated my .htaccess file, but it is still broken. Static pages and single posts all bring up the 404. The only page that works correctly is the main index. Please help and thanks!
    Edit: I even tried disabling all my plugins, but that did not help.

  2. acheashadow
    Member
    Posted 5 years ago #

    Ive got the exact same problem!

  3. Kevin Worthington
    Member
    Posted 5 years ago #

    When setting the permalinks to the "default" - site.com/?p=123 it works. Then I set it back to the custom structure: /index.php/%year%/%monthnum%/%day%/%postname%/ and it breaks again. I really would like to have the custom structure working; Google has my site indexed as such. Can anyone help?

  4. Kevin Worthington
    Member
    Posted 5 years ago #

    FIXED!
    1. Upload this file to your wp-includes directory:
    http://trac.wordpress.org/attachment/ticket/6650/rewrite.php
    (easy to save this link as rewrite.php, then upload it: http://trac.wordpress.org/attachment/ticket/6650/rewrite.php?format=raw)

    2. Set permalinks to "Default" and Save it.

    3. 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 weird errors at the top of each of my pages pointing to wp-includes/plugin.php - so I added a hack:
    error_reporting(0); (put this at the top, just below the opening <?php tag.

    That's it. Please let me know if you have any problems by commenting on my blog here: How To Fix Permalinks In WordPress When All Else Fails

  5. dlo
    Member
    Posted 5 years ago #

    @kworthington
    The fix you used was meant for WordPress 2.5. I'm not sure if you can use it safely for WordPress 2.6.

    Nevertheless, another temporary fix is to add tags and categories prefixes in the permalink admin screen. This will make your URLs valid before we get the problem fixed by the WordPress developpers.

    Best regards

  6. eiland
    Member
    Posted 5 years ago #

    i went to download http://www.wordpress.org/latest.zip, got the rewrite.php from that and replaced it again in my installation, and the two error lines are gone, and the permalinks work correct.

    Don't forget to write down your permalink phrase as this procedure will remove it, and you have a problem when you crafted a complicated one!!

  7. arubyan
    Member
    Posted 5 years ago #

    Sorry -- I get a 404 error with that link.

    Anyone else have any luck with this?

  8. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

  9. darleene
    Member
    Posted 5 years ago #

    Otto, my problem wasn't with the .php. I also upgraded the other day and everything seemed to be fine for a while...except my categories, which were missing. It seemed as soon as I fixed the categories (using this fix), my permalinks broke. It worked briefly in conjunction with the Permalinks Redirect button, but when I started to try and clean up (like, replacing the small htaccess file with the complete one), everything broke again. I tried kworthington's fix, but that didn't work either. Please help.

  10. doktormostro
    Member
    Posted 5 years ago #

    I recently upgraded to WP 2.6.1 and this fix doesnt work at all... when i upload the file, all goes wrong and i cant actualize the settings. So when i upload the original file "rewrite.php" all goes normal and not functional.

    Any help??

  11. eiland
    Member
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic