Forums

Old internal permalinks 404 error (14 posts)

  1. narkiej
    Member
    Posted 1 year ago #

    I have recently changed my permalink structure, on a long established site. Links from google redirect perfectly.

    HOWEVER. If i navigate to posts dating from 2007 and older, the single pages throw up a 404 error. If i click publish on the post(effectively re publishing it) It will then display.

    Any idea what is wrong? I can't possibly re-publish every post.

    thank you

  2. narkiej
    Member
    Posted 1 year ago #

    Can somebody at least reccomend where i can go for help. My questions are rarely answered here.

  3. narkiej
    Member
    Posted 1 year ago #

    I cannot re-release my new website until this error is rectified. I have hundreds of old posts that result in 404 errors unless i individually click publish again on every one. There's no way i can do it with that quantity.

  4. narkiej
    Member
    Posted 1 year ago #

    It doesn't seem to be related to me changing my permalinks. SO I ask, how can I get all the posts to show up without manually publishing every single one (hundreds)

  5. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Try resetting your custom permalinks back to the default setting and deleting/renaming your WordPress .htaccess file. If this works, then review Using_Permalinks before setting a custom permalink structure back up again.

  6. narkiej
    Member
    Posted 1 year ago #

    Thank you for responding. I tried the above and it still hasnt worked. Old posts still render 404 pages. Any other possibilities?

  7. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Are the urls for these 404 pages correct? If 'yes', did you actually delete your .htaccess file before setting a custom permalink structure back up again?

  8. narkiej
    Member
    Posted 1 year ago #

    Yup I did that & the urls are correct, very odd. Only starts 3 years ago. The posts show up fine on my category archive pages.

  9. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Have you tried repairing your database?

  10. narkiej
    Member
    Posted 1 year ago #

    Tried that just now an no luck. My wp dashboard says 0 posts despite there being thousands. I have tried repairing DB from phpmyadmin and plugins yet it still says 0.

  11. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Do you have a recent database backup?

  12. narkiej
    Member
    Posted 1 year ago #

    Hmm not recent enough I have been rebuilding the site and have added a few hundred new posts.

  13. narkiej
    Member
    Posted 1 year ago #

    Well I finally sorted it and here's how.

    In php myadmin I noticed all of my posts pre 2007 had a post_status of "Publish".

    I did a mass search and replace changing them all to "publish".

    And it worked a treat :)!

  14. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Interesting. I wonder what caused that...?

Topic Closed

This topic has been closed to new replies.

About this Topic