Solution to the problem: Page not found – 404 Error

in general; This message appears when you access a specific page, article, or post on your blog or website, and it does not affect your access to your WordPress control panel or home page.

This means that this message can only appear on one post; While you can browse all sections of your site normally.

Seeing this message does not mean that your post or article has been deleted or lost (it is there and safe), but that you need to recover it.

Cause of the problem:

The problem is often caused by:

  • Permalink settings need to be reconfigured.
  • htaccess file is corrupt.
  • Error in rewrite rules.

Solution #1: Update permalinks

How to update permalinks

  1. You must go to Settings » Permanent Links, and then click on Save Changes.
  2. This then updates your permalink settings and rewrite rules.

This solution fixes the 404 error for your WordPress posts, but if this solution doesn’t work, you’ll need to manually update the .htaccess file.

Solution #2: Check the .htaccess file

Log in to your server using FTP or a file manager; The file is located alongside the basic files on the site, such as (wp-content), and sometimes you need to show hidden files to see the file.

You can add this code to your .htaccess file.

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

 

Avatar photo
I am a young man who has been working in WordPress and e-marketing for 10 years. I would like to share my experience with you so that we can become professional in WordPress I will be happy to share the experience with you.