Simple ways to fix 404 error in WordPress

WordPress is a powerful content management system, but sometimes it encounters a small web site change. One of the problems many WordPress users experience is WordPress 404 error when opening pages like posts and tabs. Usually when 404 error occurs in WordPress, there is no problem opening the WordPress admin page and the home page of the website. So the problem is only for other pages on the site. You learn simple ways to fix 404 error in WordPress in this article.

Simple ways to fix 404 error in WordPress

How to fix 404 error in WordPress

This problem occurs when you use custom Permalinks in your WordPress and your .htaccess file may be deleted or its contents have been corrupted. Always try to prevent this problem through:

  • Do not ever delete a post from WordPress.
  • Never change the Permalink (address) of the post or tabs.
  • Never change the structure of the site’s Permalink.

Fix 404 error in WordPress through Permalink

One of the easiest ways to fix it is to use WordPress simple settings. To do this, first log in to your WordPress Panel.  Then, click on the link on the Permalink option.

Simple ways to fix 404 error in WordPress

Then click Save Changes.

Simple ways to fix 404 error in WordPress

By clicking on this option, WordPress will automatically update the rewrite rules and the WordPress 404 error will fix. If it continues to have problems, you must manually update the .htaccess file.

Fix 404 error in WordPress through .htaccess

To update this file, log in to the file manager of website host.

Tip: If you are using the Cpanel, after clicking on the file manager option, select the show hidden and directory option.

Then find and edit this file in the public_html folder and add the following code. If this file doesn’t exist in your public_html folder, create it. Notice that its name must be .htaccess.

 

# 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

 

Save the file and check if your problem has been fixed.

Good job! You learned two Simple ways to fix 404 error in WordPress.

Simple ways to fix 404 error in WordPress
4.4 (87.5%) 16 votes

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

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