Fix WordPress 404 Problem


What is WordPress 404 Problem?

User gets a 404(Page Not Found) Error on posting an article, saving a draft or other instances.

The solutions are for Self-Hosted WordPress Instalation only.

Solution (1):

  1. Save a .htaccess file in the root directory of your WordPress Installation.
  2. Add SecFilterEngine Off to disable mod_security or you can add SecFilterScanPOST Off to disable HTTP POST scanning. My suggestion is to go for disabling HTTP POST scanning since disabling mod_security is a bit risky.
  3. Now test WordPress. And if it still breaks then move to next solution.

Note: In some sites, .htaccess gets override. So you can request your hosting company to disable HTTP POST scanning or mod_security.

Solution (2):

  1. Post the article only with title, tags and categories. And note down the ID of the post(e.g. http://example.com/?p=1234)
  2. Now open phpMyAdmin and open wp_posts table.
  3. After that search the ID and add the article in HTML format in post_content field of table. See the screenshot.
  4. Save the record. And check your blog.

http://example.com/?p=N

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.