![]() Note that this problem can happen when you move your site from a domain or location to another one. Then you can return it again to your other previous choice or keep it as default as yo wish Login to your admin area: Settings > s which should be : Ĭhoose Default setting, then save changes In my case, I changed the file /etc/apache2/nf in section: Īnd restart the web server with systemctl restart apache2įixing that problem is very simple if you was using s other than the default such as Day and name, Month and name, Numeric, Post name or Custom Structure, you only need to htaccess file should exists and the nf should be correct. PS: Have you upgraded to 3.1? I've seen some people with plugin issues in this case.īasically the. htaccess is the problem.Īfter that, you could simply set "month and name" structure again, and see if it works. I suggest you return your structure to default ( ?p=ID ) so you ensure that. Many people new to WP may encounter 404 errors in WP-Admin, and ultimately it comes down to a bug in a plugin or theme, or their effect perhaps on a rewrite rule (either stored in the database in wp-options or in the. Hopefully, these steps will help you troubleshoot the issue you’re having when you publish a post and it returns a 404 error.htaccess is a hidden file, so you must set all files as visible in your ftp. They can check to see if your mod_security rules have been altered, and whitelist it. If none of these work, talk to your web host. Simply making sure that the correct structure is selected, and then clicking on the Save Changes button should do it.ħ Talk to your web host to check to see if they need to whitelist a mod_security rule. You can try setting it to another choice, but you shouldn’t have to. When you encounter a 404 Page Not Found error in WordPress, you have two options for correcting it. You can do this using phpmyadmin, or if you don’t like to mess with it, you can using WP-Optimize. When working with WordPress, 404 Page Not Found errors often occur when a new theme has been activated or when the rewrite rules in the. htaccess file, if you are using /%postname%/ for your structure should look like: # BEGIN WordPress The code that WordPress inserts into your. htaccess file to make sure it is correct. Please note that if you do manually replace your files, to not upload the wp-content folder in the WordPress downloadable zip file.Ĥ Check your. This eliminates checking, and makes sure you have fresh WordPress files. ![]() You can either re-install from your WordPress Updates area (Under Dashboard > Updates) in your WordPress admin, or manually upload the files via FTP or SFTP. Instead of doing this, I just give fresh WordPress files. ![]() I’ve read in a few places that people say you should check to see if the post.php file actually exists. If it still sends you to a 404 page, then it’s not a problem with the theme.ģ Uploaded a fresh installation of WordPress. Like the plugin check, try publishing the post. This will eliminate the possibility that the theme may be part of the problem. How to Fix WordPress Posts Returning a 404 Errorġ Deactivate plugins, and then re-activate them one by one.Īs you reactivate each plugin, try to publish the post and see if it will publish without returning a 404 error.Ģ Set the theme to a default theme, like Twenty Sixteen. ![]() ![]() I’ve put together a list of steps to try. There can be a variety of things that make the WordPress post return a 404 error, so you will have to troubleshoot it out to pinpoint what is causing the issue. When you publish a post, it will reload the page and give you a confirmation that the post has been published. In this case, you click to publish the post, and while it loads to the 404 error, you will see in your browser address area, or where the URL of the page is, that it says /wp-admin/post.php. WordPress does some weird things, like when you try to publish a post, and it returns a 404, not found page. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |