• Resolved SWC76801

    (@swc76801)


    Last night when I went to bed, the site was working perfectly. This morning I was getting a 404 error on all pages. I couldn’t access the administrative page. Before noon, I was able to access the home page and all of the administrative pages, but not any of the post not shown on the home page. I can go to “Posts” and edit any of the posts, but when I try to view them I get a 404 error. Can anyone offer a suggestion?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter SWC76801

    (@swc76801)

    I have tried switching theme to WP Classic — this didn’t help.

    Thread Starter SWC76801

    (@swc76801)

    The problem was with my permalinks. I changed the settings from “Month and name” to “Default”. Everything was back to normal. I then returned the settings to “Month and name” and the problem was corrected. My site is now back to normal.

    Now that I know where the problem came from, I can’t help but wonder what made it happen? Is there something that I did to create this or is it just a quirk?

    Hi,

    If you change the permalinks..then add this code in htaccess and have a check with old posts:

    # BEGIN WordPress

    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Thanks,

    Shane G.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Old Post Getting 404 Error’ is closed to new replies.