• 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

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter narkiej

    (@narkiej)

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

    Thread Starter narkiej

    (@narkiej)

    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.

    Thread Starter narkiej

    (@narkiej)

    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)

    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.

    Thread Starter narkiej

    (@narkiej)

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

    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?

    Thread Starter narkiej

    (@narkiej)

    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.

    Have you tried repairing your database?

    Thread Starter narkiej

    (@narkiej)

    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.

    Do you have a recent database backup?

    Thread Starter narkiej

    (@narkiej)

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

    Thread Starter narkiej

    (@narkiej)

    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 :)!

    Interesting. I wonder what caused that…?

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Old internal permalinks 404 error’ is closed to new replies.