How to Fix wp-admin/post.php 404 Page Not Found Error WordPress

WordPress, especially self-hosted (wordpress.org), is known as the top class of a blog site. This is because wordpress provides a cms platform that is truly open source for use by a wide range of users.

WordPress.org clearly spreads their CMS platform for use, even in the tinkering though by users. Of course all that is done independently by the user himself.

That is one of the successes of wordpress in making the decision to share their software open source. Because with that, now many external tools or supporting software such as plugins and so on are developed by many users in order to facilitate and support the continuity of blogging activities of wordpress users.

Because of the many other supporting tools, wordpress can not only be used as a content sharing platform. But it can also be used as an e-commerce site, video sharing, portfolio and even almost all categories of sites can be implemented using wordpress.

The only drawback may be in terms of development. Where we as users are freed to develop independently. But it’s also very good because we as users can also customize our wishes to whatever detail we want.

Because the development process is completely independent, it is not uncommon for some wordpress.org users to experience difficulties when an error or error is experienced.

One of the problems that ofamni has experienced is where ofamni can’t publish content at all. Every time you press the Publish, Draft, Preview and even Schedule buttons, you will immediately redirect to the wp-admin/post.php page which then displays a 404 page not found error or page not found. Strangely, sometimes there is no problem when the post or article we want to publish does not include a link or image at all.

So, my predictions. Most likely the error lies in Mod_Security.
But don’t worry, because this kind of error is common when we use wordpress.org as our blogging platform.

How to fix it is quite easy, please follow one of the solutions that can be applied below:

Note: It is possible that the “.htaccess” file is hidden (hidden), so when opening your hosting directory/file manager, please set it to settings so that hidden files will still appear. But if “.htaccess” is not in your hosting, then please create the file yourself.

First Method: Check Permalink

The first thing you should make sure is to check the permalinks of your wordpress site, whether they are appropriate or not.

How from your wordpress dashboard, navigate to Settings -> Permalinks -> Post Name.
If, there is still no change from the error. Then please follow the other methods below.
Second Method: Crosscheck Default .htaccess

Please open your hosting cpanel, then look for the “.htaccess” file.

If it has been found, please edit the file window, then see if the code matches the default or not.

Please match with the following wordpress default code:

# 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

If .htaccess on your hosting, it is not the same as the code above. So please try to apply the code above and then apply it. But if it remains without any changes. Please follow the next method.

Second Method: Disabling Mod_Security

Still the same as the second method, in this method it still requires editing .htaccess or maybe not (according to your hosting cpanel).

Okay, try to find the “.htaccess” file in your hosting directory, once found. Please try to apply one of the following codes:

# BEGIN 404 Fix
<IfModule mod_env.c>
SetEnv MODSEC_ENABLE Off
PassEnv MODSEC_ENABLE
</IfModule>
#END 404 Fix

Or

# BEGIN 404 Fix
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterPost Off
</IfModule>
# END 404 Fix

Oh yeah, maybe some hosting settings in cpanel have provided mod security settings so that the .htaccess stage doesn’t work. If you feel that in your cpanel there is a “Mod Security” setting, it is precisely in the “Security” section on your cpanel hosting menu page.

If that setting exists, please disable it. How to press the OFF / Disable button.

Third Method: Re-install or Downgrade WordPress

Okay, this stage is one of the most sacred and the last two stages if all the above methods don’t work.

So, if none of the above methods work. Try to re-install or downgrade your version of wordpress.

To Reinstall, please open the “Update Core” page (Your Site/wp-admin/update-core.php) on your wordpress dashboard, then press “Re-install Now”.

As for downgrade, you have to manually download the previous version of wordpress at:

https://wordpress.org/download/release-archive/

then, choose the one you want from the previous version.
If you have downloaded the wordpress file, then enter the stage of opening your hosting directory.

Before your Hosting Directory/File Manager opens, it’s a good idea to do a backup first to anticipate unwanted things. After the backup process is complete, open your Hosting Directory / File Manager in cpanel, then delete all system files from wordpress except the “wp-content” folder and the “wp-config.php” file.

After everything is deleted, please upload the wordpress file that you downloaded earlier to replace the file you deleted. Remember, the file may need to be extracted first to match the format and directory location of the wordpress system.

After everything is finished, please re-check the 404 error on your wordpress dashboard.

Fourth Method: Contact Hosting Customer Service/Technical Support

If so, it still happens. So inevitably you have to contact customer service or technical support from your hosting or maybe you can also ask people who are experts in their fields.

Anjali Punjab

Anjali Punjab is a freelance writer, blogger, and ghostwriter who develops high-quality content for businesses. She is also a HubSpot Inbound Marketing Certified and Google Analytics Qualified Professional.