KnowledgebaseHow can we help you?

How to Fix WordPress Pages and Post Returning 404 Page Not Found Error

1. Login to wp-admin
2. Go to Settings » Permalinks, and simply click on Save Changes button.

 404 error

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

 

Login to your server using FTP, and modify the .htaccess file which is located in the same location where folders like /wp-content/ and /wp-includes/ are located. And manually add this code in your .htaccess file:

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

Was this answer helpful?

Also Read

Gen X Web Hosting
Have a question? Call us.
+91 94296 92542
10:00 am – 7:30 pm IST, Mon–Sat
Live chat, email & tickets 24/7
Hosting
Linux Shared Windows Shared Reseller Hosting Node X Virtual Cloud Dedicated Servers
Products
Register Domains Transfer Domains SSL Certificates n8n Hosting Business Email
Company
About Us Contact Us Blog Careers Affiliates
Support
Open Ticket Knowledgebase Support Center
HostAdvice Great Uptime Award for Gen X Web Hosting Gen X Web Hosting Reviews Gen X Web Hosting Reviews
Copyright © 2026 Gen X Web Hosting. All rights reserved.
Privacy Policy Terms of Use Site Map