Green Hat Expert

  • Home
  • Social Media
    • Instagram
    • TikTok
    • Snapchat
    • Facebook
    • YouTube
    • Twitter
  • Messaging
    • Discord
    • Telegram
    • Whatsapp
  • About
  • Submit Guest post
You are here: Home / WordPress / How to Fix WordPress Posts Returning 404 Error

How to Fix WordPress Posts Returning 404 Error

Last Updated on August 21, 2022 By Arsalan Rauf

WordPress Posts Returning 404 Error

WordPress is a powerful CMS. At times, a slight problem can make your site inaccessible. However, to find a solution for every WordPress problem is an easy task. I am trying to cover most of the problems of WordPress for our users.

Like internal server error or error establishing database connection.

WordPress posts returning a 404 error is another common problem that most of the WordPress users are facing these days. In this post, I shall show you how to fix WordPress posts returning 404 error.

In this occasion, a user can access his WordPress admin area and the main page of site. When the user goes to a single post, he gets a 404 not found error. Firstly, you do not need to panic because most of the time your posts are still there and entirely safe. It happens when something went wrong with rewrite rules or your .htaccess file got deleted. You need to fix your permalinks settings.

Go to Settings > Permalinks, and simply click on Save Changes button.

update perma links

This process will flush rewrite rules and update your permalinks settings. In most of the cases, this solution fixes the WordPress posts 404 error. However, if it does not work for you, then you have to update your .htaccess file manually.

Login to your server by using FTP and modify the .htaccess file which is available in the same location where folders like /wp-content/ and /wp-includes/ are present. You need to make the file writeable temporarily by changing the permissions to 666 that is the easiest way. Now repeat the original solution. Do not forget to change the permissions back to 660. You can also add this code in your .htaccess file manually:

1
2
3
4
5
6
7
8
9
10
# 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

Fix for Local Servers

Developers and designers often install WordPress on their PC/computer using a local server due to testing purposes. If you want to use permalinks, then you have to enable the rewrite_module in the Apache configuration of your WAMP, MAMP or XXAMP.

I hope that this post will help you to resolve posts returning 404 error in WordPress.

Did this solution work for you?

Do you have any other solution for 404 error or issue?

Kindly share it in the comment section.

Do not forget to share this post.

 

Arsalan Rauf
Arsalan Rauf

Arsalan Rauf is an entrepreneur, freelancer, creative writer, and also a fountainhead of Green Hat Expert. Additionally, he is also an eminent researcher of Blogging, SEO, Internet Marketing, Social Media, premium accounts, codes, links, tips and tricks, etc.

Filed Under: Blogging, How to, WordPress Tagged With: 404 error wordpress login, 404 error wordpress permalinks, wordpress 404 after migration, wordpress 404 error after changing permalinks, wordpress 404 error on all pages, wordpress 404 error on all pages except home, wordpress page not found but it exists, wordpress page not found error


Recent Posts

  • Free DeepSeek Accounts 2025
  • Free Zoho Mail Accounts 2025
  • Acudepot Discount Codes 2025
  • Free Blackshot Accounts 2025
  • Free GMX Email Accounts 2025
  • Songtrust Discount Codes 2025
  • Uzicases Discount Codes 2025
  • Cardillo Promo Codes 2025
  • Free DriverFix License Keys 2025
  • Avast Secureline VPN Activation Codes 2025

Recommended Posts

Create a Gmail Account Without Phone Number

Free Course Hero Account

Crunchyroll Accounts

Cracked Apps

Free Pokemon Go Accounts
Onlyfans Free Accounts
Free Chegg Accounts
Free Paypal Accounts
Free Gmail Accounts
Funny Steam Names

Categories

  • Apps
  • Apps for PC
  • Blogging
  • Discord
  • Facebook
  • Gaming
  • Grammar
  • Guide
  • How to
  • Instagram
  • Messaging
  • OnlyFans
  • Pinterest
  • Reddit
  • SEO
  • Snapchat
  • Social Media
  • Spotify
  • Steam
  • Telegram
  • TikTok
  • Twitch
  • Twitter
  • Whatsapp
  • WordPress
  • YouTube
  • Home
  • Social Media
  • Messaging
  • About
  • Submit Guest post