WordPress.org

Ready to get started?Download WordPress

Forums

What the heck happened to all of my posts? (10 posts)

  1. benkling
    Member
    Posted 5 years ago #

    My site: http://blog.benkling.com/

    For some reason, all of the post pages are 404's!
    The posts still exist though, because when I go to edit them, the text is still there.

    I just can't preview them or view them after I've published them.

    Additionally, I just found out that none of the tag pages exist as well.
    http://blog.benkling.com/tag/philosophy/ for example, is a 404!

    As is http://blog.benkling.com/author/admin/ !
    Please help!

  2. darrinb
    Member
    Posted 5 years ago #

    Your permalinks are messed up. Did you recently do an update/upgrade?

  3. benkling
    Member
    Posted 5 years ago #

    I've upgraded several times since it's happened.

    Do you know how to fix it? My permalink settings say that's the right format.

  4. darrinb
    Member
    Posted 5 years ago #

    Some hosts do not recognize new .htaccess files immediately. Which is why I asked if you upgraded recently.

    These should lead you in the right direction.

    Check out this thread:
    http://wordpress.org/support/topic/225872?replies=4

    And this section of the codex:
    http://codex.wordpress.org/Using_Permalinks

  5. benkling
    Member
    Posted 5 years ago #

    oh, well it's been like this for over a month, so I'm not sure if it's an .htaccess updating problem.

    I switched to "pretty" permalinks a while ago and they worked well for a god amount of time. These posts were previously accessible at those URLs.

    Now, even when I use the "ugly" format (blog.benkling.com/?p=12 for example) it tries to load the "pretty" version and gives a 404.

    Also, would an htaccess problem affect http://blog.benkling.com/author/admin/ ?

  6. darrinb
    Member
    Posted 5 years ago #

    Have you reset your permalinks backs to "ugly" in your dashboard? Or are you manually typing in blog.benkling.com/?p=12 in your address bar?

    Try activating the default theme, uninstalling any plugins you may have, and refreshing your browser.

  7. benkling
    Member
    Posted 5 years ago #

    I just changed it back to ugly and all the links work. Then I changed it to pretty and they no longer worked.

    Am I stuck with ugly?

  8. darrinb
    Member
    Posted 5 years ago #

    No, something might be wrong with your .htaccess file which is preventing WP from being able to write the pretty urls or something is messed up in your WP re-write files. Typically it's a .htaccess issue.

    Check your .htaccess file, what's in it? It should look something like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress

    Also, make sure WP has access to it and can write to it.

  9. benkling
    Member
    Posted 5 years ago #

    Ah I got it! Thanks!
    Somehow, my .htaccess from my main site got into the wordpress directory.

    I replaced it with what you provided, and it works great.

    Thank you for your patience and insight!

  10. darrinb
    Member
    Posted 5 years ago #

    Hey no problem! Glad I could help.

Topic Closed

This topic has been closed to new replies.

About this Topic