Blogging

WordPress Page Not Found After Publish? Easy Fix

WordPress page not found after publish? don't worry. I have faced the same problem in my earlier blogging days. It was very hectic for me because I didn't know much about the subject then. Through many trials and errors, I found out these 6 methods that can help to resolve this.

When you are working with WordPress sometimes there are chances that you stumble upon different errors. One of the most common errors of WordPress is the 404-page error. This error occurs due to a lot of reasons that is why it can be daunting to fix this error.

Especially the new users of WordPress have a real hard time dealing with this error. It is vital to know the right way to troubleshoot this error. And if not done correctly you can even make it worse. This error affects your pages of the website or blog. Either the homepage or post page. 

There can be many indications of this error.  One of them can be a page or post not found after publishing.  You can fix this error on your own. You don't need to hire an expert. So in this article, I would like to share about the top ways or best methods to fix this problem. Before diving deep into the solution. Let's look at the different variations of the 404 error.

  • WordPress page not found but it exists
  • 404 file or directory not found WordPress
  • The  WordPress dashboard 404 error
  • WordPress error 404 when publishing or saving post
  • WordPress home page not found

This problem can be due to your wrong WordPress installation, server settings or database settings, etc.  It is so common that every blogger has faced it. The solutions to all these problems are very similar. I have listed all the possible solutions to troubleshoot this type of errors.

How to fix WordPress Page Not Found After Publish?

Solution 1

(Post.php)

This happens when there is a faulty WordPress installation or if you try to migrate your website from one server to another.

a) Verify if you are having a valid post.php page

b) Look inside your WP-admin folder

WordPress page not found but it exists

c) You can do this by using the Cpanel file manager or through FTP manager like Filezilla

Solution 2

(Resave permalinks)

Some time permalinks get affected due to some plugin or redirect issues. Mainly because of purging cache data.

a) Go to your WordPress admin area

404 file or directory not found WordPress

b) Navigate to Settings> Permalink

c) Just click on any option other than what's in the default and save it.

d) Now again click on the one that was saved before and now click save changes.

Solution 3

(Edit .htaccess File)

If you are missing a .htaccess file then it can cause lots of trouble for your blog in general. And in some instances, the file also gets corrupted.

a) Check if you have a valid .htaccess file

WordPress dashboard 404 error

b) If you have one, make sure it has these lines of codes

# BEGIN WordPress


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

# END WordPress

c) If not then, just copy and paste the codes and upload them in your root directory.

Also Read: Which tool helps you measure the success of your website?

Solution 4

(Fix URLs)

The two URLs should be the same and be careful to edit this part. It is highly recommended not to change this setting unless required.

a) Check your blog WordPress and Site URL.

WordPress error 404 when publishing or saving post

b) If you’re having an SSL certificate then you should be using https in your URLs if not then Http.

c) Also, make sure there is no trailing slash (/) at the end of the URL

Solution 5

Deactivate all plugins

There are plenty of plugins that can do some serious damage to your blog. If you have any installed then you get rid of it.

a) Go to the installed plugins section

WordPress home page not found

b) Deactivate all the active plugins and try again if it solves the problem.

c) If it works you can activate your plugin one by one.  And find out which plugin was causing this issue.  When you found the plugin then you can contact the support team of the plugin.  And inquire about the same. They will be ready to help you.

Also Read: How to structure a blog post

Solution 6

Disable your ModSecurity

ModSecurity is blocking lots of events and activities on your server. That can also be the case "why WordPress page not after publish" error occurs. 

a) In your C panel account go to the security section

404-page error

b) If the mode security is enabled, then click on disable.

Final thoughts

I hope that by using all this method you are able to fix the  "WordPress page not found after publish" error.  Start from solution 1 and try to troubleshoot the error.  Maybe you have to you even use multiple solutions for this error. Apart from that, it is also essential to keep up these settings in check. In order to prevent future errors.

If any of the solutions help you out with the error. Then don't forget to share this article so that we can help others as well. Comment down below which solution worked for you. Peace 

Why won't my WordPress post publish?

If your WordPress installation is new than verify your blog by confirming through email. Once done you can easily publish posts.

How do you fix the requested URL was not found on this server WordPress?

You can fix this error by editing urls in wp-option table inside phpadmin.

How do I reset permalinks in WordPress?

Simply change the type to any other configuration and again save it to your desired settings.

Comments