You are currently viewing How to Fix WordPress Pages Or Posts Returning 404 Error

How to Fix WordPress Pages Or Posts Returning 404 Error

  • Post author:
  • Post category:Blog
  • Post comments:0 Comments

WordPress is the most powerful Content Management System (CMS). Sometimes a slight tweak can make your site inaccessible. However, we can find the best solution for your problem, and it’s going to be extremely easy. In the past, we cover WordPress with lots of error-fixing solutions. You can check out those tutorials. Another common problem that most WordPress admin faces are WordPress posts returning a 404 error. This article covers the full article on how we can fix WordPress posts returning WordPress 404 error. 

When a user is facing this problem, he can access the WordPress admin area or their other blog page. But when he accesses a single post, they get a post returning a WordPress 404 error. First of all, don’t be panic to see this problem. It’s a common problem, and your post returning a 404 page is fully safe in the right place. Most of the causes behind this problem are .htaccess file got deleted, or something went wrong with the rewrite rules. The first thing you need to do is set your permalinks settings correctly.

Video Tutorials To Fix Returning 404 Error

If you don’t need video instruction and want to gain more instructions, you can continue your reading.

Go to Settings » Permalinks and set your permalinks structure like a post name, and then click on the save changes button.

WordPress Posts Returning 404 Error

This process will update your permalinks setting and rewrite the flash rules. This solution fixes all kinds of WordPress post 404 returning errors in most cases. If the solution doesn’t go with you, you must manually update your .htaccess file.

Login to your website cPanel, and modify your .htacess file, which is located in a folder like wp-content/wp-content/wp-includes. The easiest way to do this is to temporarily make the file writeable by changing the permissions to 666. Then you repeat the original solution for this. And don’t forget to change the permissions back to 660. You can also add this code in your .htaccess file manually

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Fix WordPress 404 error for Local Servers

Sometimes developers and designers install WordPress on their computers using a local server for testing purposes. If you want to use pretty permalinks for your website, then you need to enable the rewrite_module in the Apache configuration of your XXAMP, WAMP, or MAMP.

Hope you guys enjoy this article and resolve posts returning 404 errors in your WordPress website. Did this solution is to go with you? If you’ve another tutorial or solution, you can share it in our comments section. 

Thank you.

ideatechy nesletter

Email Subscription

Join 200K+ Subscribers For Exclusive Access To Our Monthly News Letter With Insider Cloud, Hosting Discount, Free Coupon Code, WordPress Tips!

Leave a Reply