Cannot Update A Post, 404 Error

After months of leaving and deleting my WordPress site, I decided to try again. I downloaded the new version 4.7.3, installed and added a new post. So far so good.

I then went back to edit the post and the same error that I received before, cannot find the post; nothing to see here, message.

I cannot edit any new post that I create, but I can create a new post. The odd things are that I can modify the default message that is created on install by WordPress.

I deleted the database and the entire home directory multiple times. Deleted the .htaccess file and changed permalinks to no avail as well.

The setup is a fresh install with no plugins, no themes used except default. I tried switching between the different default also. Still, no dice.

Whenever I click the update, it returns a 404 error, page not found, as stated by Firefox dev tool. Add new does work. If I cick to edit a new post, it bring the page up in the editor. But as soon as I click update, 404 error.

This is the contents of the .htaccess file as by WordPress.

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

# END WordPress

Update

I just noticed in one of the logs this error when I changed the permalink to plain. [Fri Mar 24 06:15:46 2017] [error] [client xxxxxxxx] File does not exist: /home/domain/public_html/403.shtml, referer: domain.com/wp-admin/post.php?post=14&action=edit

Any ideas?

2 Answers
2

To do so .. You need to login to wordpress admin and then need to save the permalink again..

Just go to Settings >> Permalink

And save without doing any changes.. and that error should be gone..

Leave a Comment