{"id":6050,"date":"2020-04-04T15:00:52","date_gmt":"2020-04-04T13:00:52","guid":{"rendered":"https:\/\/qodeinteractive.com\/magazine\/?p=6050"},"modified":"2020-10-26T17:00:17","modified_gmt":"2020-10-26T16:00:17","slug":"404-not-found-wordpress-error","status":"publish","type":"post","link":"https:\/\/qodeinteractive.com\/magazine\/404-not-found-wordpress-error\/","title":{"rendered":"How to Fix the &#8220;404 Not Found&#8221; WordPress Error"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]<strong>One of the most common issues<\/strong> that appear for WordPress websites is the 404 Not Found WordPress error. Luckily, <strong>it is fairly easy to solve<\/strong> compared to the other WordPress errors. It\u2019s rarely a sign of a serious problem, but it can still have a negative effect on user experience. The error <strong>can happen during access to theme assets (images, CSS or JS files) and pages<\/strong>. Most often, it shows up on WordPress posts. The error message can vary but usually includes the following phrases: <strong>not found, can\u2019t find, Error 404 or just 404<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]In this article, we will guide you through the solutions that are known to help with this error. They aren\u2019t restricted to posts only &#8211; you can apply them in any situation when the 404 Error occurs.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Small tip before we begin: since 404 Errors are virtually impossible to avoid, <strong>it is also important to improve the user experience when they happen<\/strong>. You can do this by customizing the look of your 404 Error page. Some themes, like the ones we provide at <a href=\"https:\/\/qodeinteractive.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Qode Interactive<\/a>, offer these customization options, while others require the use of third-party plugins.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Here\u2019s an example of a customized 404 page.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/404-Error-page.jpg\" class=\"attachment-full size-full\" alt=\"404 Error page\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/404-Error-page.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/404-Error-page-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/404-Error-page-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]In this article, we\u2019ll cover the following troubleshooting options: [\/vc_column_text][vc_empty_space height=&#8221;22px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#Removing-invalid-links\">Removing invalid links<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#Removing-typos\">Removing typos<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#Clearing-the-cache\">Clearing the cache<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#Saving-permalinks\">Saving permalinks<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#Making-default-htaccess-file\">Making a default .htaccess file<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#Additional-troubleshooting-steps\">Additional troubleshooting steps<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;70px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Preliminary Steps<\/h2>\n<p>[\/vc_column_text][vc_column_text]Before you look for the cause of the issue, <strong>make sure the error wasn\u2019t only temporary<\/strong>. While it may seem needless, we strongly recommend you take these preliminary steps before delving into more complicated ways to deal with the 404 Error.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"Removing-invalid-links\"><\/a>Removing Invalid Links<\/h3>\n<p>[\/vc_column_text][vc_column_text]Occasionally, an <strong>admin user or site editor delete an article and move its content elsewhere, but forget to remove the broken link from the menu of the site<\/strong>. This is one of the more common causes of the 404 Error. In this case, all it takes is removing or editing the menu links that lead to non-existent posts. Do the same with the broken page URLs.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]To remove invalid links, navigate to <em>Appearance &gt; Menus<\/em> and select the menu currently in use.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Broken-menu-item-3.jpg\" class=\"attachment-full size-full\" alt=\"Broken menu item\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Broken-menu-item-3.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Broken-menu-item-3-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Broken-menu-item-3-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Find the invalid menu item and <strong>delete it<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Broken-menu-item-1-1.jpg\" class=\"attachment-full size-full\" alt=\"Delete broken menu item\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Broken-menu-item-1-1.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Broken-menu-item-1-1-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Broken-menu-item-1-1-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Click on <em>Save Menu<\/em> to save the changes.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Broken-menu-item-2-1.jpg\" class=\"attachment-full size-full\" alt=\"Save menu item\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Broken-menu-item-2-1.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Broken-menu-item-2-1-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Broken-menu-item-2-1-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Afterward, you can add a new menu link with the proper URL and <strong>drag it to the desired location within the menu<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"Removing-typos\"><\/a>Removing Typos<\/h3>\n<p>[\/vc_column_text][vc_column_text]Typos are another common cause of error 404. <strong>Make sure that the page\/post URL is correctly typed<\/strong>, especially if you are typing it manually. For example, inserting your-site-name\/blof instead of your-site-name\/blog can cause the error, so make sure to check carefully.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"Clearing-the-cache\"><\/a>Clearing the Cache<\/h3>\n<p>[\/vc_column_text][vc_column_text]With browser-related troubleshooting, it is also recommended to <strong>make sure that the error isn\u2019t caused by caching<\/strong>. Clear the browser cache and try accessing the page, post or theme asset once more. You can also access it in another browser or an incognito window inside of your current browser.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Solving the Error<\/h2>\n<p>[\/vc_column_text][vc_column_text]With browser-related troubleshooting, it is also recommended to <strong>make sure that the error isn\u2019t caused by caching<\/strong>. Clear the browser cache and try accessing the page, post or theme asset once more. You can also access it in another browser or an incognito window inside of your current browser.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Also, <a href=\"https:\/\/qodeinteractive.com\/magazine\/how-to-manually-backup-wordpress-website\/\">create a backup of your WordPress site<\/a>. If you don\u2019t feel comfortable doing it yourself, ask your hosting provider to do it for you.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"Saving-permalinks\"><\/a>Saving Permalinks<\/h3>\n<p>[\/vc_column_text][vc_column_text]If the 404 Error is present on the entire site, it is likely caused by a permalink issue. On WordPress posts, it happens when you click to view a post. This can be quite frustrating, especially after you\u2019ve just created a post and added all the content.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]If you are experiencing this issue, don\u2019t worry. Your post is still there and all you need to do is <strong>update your permalinks<\/strong>. Navigate to <em>Settings &gt; Permalinks<\/em> and click on <em>Save Changes<\/em> in the lower-left corner of your screen.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Save-permalinks-1.jpg\" class=\"attachment-full size-full\" alt=\"Save permalinks\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Save-permalinks-1.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Save-permalinks-1-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Save-permalinks-1-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]The issue with viewing the posts is most often caused by the changes in the permalink slug of a <a href=\"https:\/\/developer.wordpress.org\/themes\/basics\/post-types\/#custom-post-types\" target=\"_blank\" rel=\"noopener noreferrer\">custom post type<\/a>. Most premium themes, apart from <a href=\"https:\/\/developer.wordpress.org\/themes\/basics\/post-types\/#default-post-types\" target=\"_blank\" rel=\"noopener noreferrer\">default post types<\/a>, offer their own post types. They also might include the option to change the permalink slug of that custom post type.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Qode Interactive themes offer this option. The option included within these themes has a note that states: <em>After entering slug, navigate to Settings &gt; Permalinks and click on Save in order for changes to take effect<\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Portfolio-permalink-slug-1.jpg\" class=\"attachment-full size-full\" alt=\"Portfolio permalink slug\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Portfolio-permalink-slug-1.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Portfolio-permalink-slug-1-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Portfolio-permalink-slug-1-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Using a plugin to change the permalink slug of a custom post type is also a common cause of the issue, especially for themes that lack the permalink options. <strong>If you are using this type of plugin, make sure to update your permalink settings after changing the slug<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"Making-default-htaccess-file\"><\/a>Making a Default .htaccess File<\/h3>\n<p>[\/vc_column_text][vc_column_text]Another way to solve the 404 Error is to <strong>manually edit the <em>.htaccess<\/em> file<\/strong>. This solution requires an FTP client like FileZilla and the knowledge of <a href=\"https:\/\/qodeinteractive.com\/magazine\/how-to-use-ftp\/\">editing files via FTP<\/a>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]As the .htaccess file is a hidden server configuration file, you need to <strong>enable viewing hidden files in the chosen FTP client<\/strong>. To do this in FileZilla, navigate to the Server tab and click on <em>Force showing hidden files<\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/6-Force-showing-hidden-files.jpg\" class=\"attachment-full size-full\" alt=\"Force showing hidden files\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/6-Force-showing-hidden-files.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/6-Force-showing-hidden-files-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/6-Force-showing-hidden-files-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]After setting the options, go to the root directory of your WordPress site, find the .htaccess file, right-click on it and select <em>View\/Edit<\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"376\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Htaccess-edit.jpg\" class=\"attachment-full size-full\" alt=\"Htaccess edit\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Htaccess-edit.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Htaccess-edit-300x159.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Htaccess-edit-620x328.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Before the edits, <strong>download the file and save that version as a backup on your computer<\/strong>. You can see the download option on the screenshot.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]To restore the default .htaccess file, <strong>add the following code and save the file<\/strong>. Upload it to the server, overwriting the one that\u2019s currently there.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># BEGIN WordPress\r\n&lt;IfModule mod_rewrite.c&gt;\r\nRewriteEngine On\r\nRewriteBase \/\r\nRewriteRule ^index\\.php$ - [L]\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\nRewriteCond %{REQUEST_FILENAME} !-d\r\nRewriteRule . \/index.php [L]\r\n&lt;\/IfModule&gt;\r\n# END WordPress<\/pre>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;39px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Clean-htaccess-file-1.jpg\" class=\"attachment-full size-full\" alt=\"Clean htaccess file\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Clean-htaccess-file-1.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Clean-htaccess-file-1-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Clean-htaccess-file-1-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Run a test<\/strong> to see if the error is resolved. If it isn\u2019t, <strong>re-upload the stored backup version of the file<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]If you have trouble implementing this solution due to insufficient file permissions, you can <strong>temporarily change the permission of the .htaccess file to 666<\/strong>. Do it by right-clicking on the .htaccess file, from your chosen FTP client, and selecting <em>File permissions<\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Htaccess-permissions-image-1.jpg\" class=\"attachment-full size-full\" alt=\"Htaccess permissions image\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Htaccess-permissions-image-1.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Htaccess-permissions-image-1-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Htaccess-permissions-image-1-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Afterward, manually insert 666 in the numeric value box and press <em>OK<\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Htaccess-permissions-image-2.jpg\" class=\"attachment-full size-full\" alt=\"Htaccess permissions image\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Htaccess-permissions-image-2.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Htaccess-permissions-image-2-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Htaccess-permissions-image-2-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Having changed the file permission, <strong>restore the default .htaccess file as we previously described<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]When you\u2019re done, <strong>revert the permission of the .htaccess file to the old value<\/strong>, which can be 644 or 660.[\/vc_column_text][vc_empty_space height=&#8221;81px&#8221;][vc_separator color=&#8221;custom&#8221; accent_color=&#8221;#f0f0f0&#8243;][vc_empty_space height=&#8221;50px&#8221;][vc_widget_sidebar sidebar_id=&#8221;top-picks-banner&#8221;][vc_empty_space height=&#8221;28px&#8221;][vc_separator color=&#8221;custom&#8221; accent_color=&#8221;#f0f0f0&#8243;][vc_empty_space height=&#8221;80px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"Additional-troubleshooting-steps\"><\/a>Additional Troubleshooting Steps<\/h2>\n<p>[\/vc_column_text][vc_column_text]On rare occasions, none of the solutions we described will solve the issue. For those cases, here are <strong>2 additional steps known to successfully troubleshoot<\/strong> general WordPress errors.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">Disabling mod_security<\/h3>\n<p>[\/vc_column_text][vc_column_text]Mod_security is an open-source software used for site protection and access-control. This is achieved using certain rulesets, namely ModSecurity Core Rule Set or self-made rulesets.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]However, mod_security rules are known to give quite a few false positives regarding the daily use of a WordPress site. Therefore, <strong>you need to make certain ruleset exclusions<\/strong>. This can be difficult if you are implementing numerous rules, so the best way to deal with this issue is to temporarily disable the mod_security altogether.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]This can be done by <strong>editing your .htaccess file via FTP<\/strong>. Add the following code at the top of your .htaccess file.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;IfModule mod_security.c&gt; \r\nSecFilterEngine Off \r\nSecFilterScanPOST Off \r\n&lt;\/IfModule&gt;<\/pre>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;39px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Htaccess-mod-security-code-1.jpg\" class=\"attachment-full size-full\" alt=\"Htaccess mod security code\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Htaccess-mod-security-code-1.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Htaccess-mod-security-code-1-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Htaccess-mod-security-code-1-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Afterward, test if the issue is resolved. If not, remove the code to avoid creating security issues.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">Disabling Plugins and Theme<\/h3>\n<p>[\/vc_column_text][vc_column_text]As it is important to be thorough, testing your plugins and theme should be included in every troubleshooting process. <strong>Deactivate your plugins one by one<\/strong>. After each deactivation, try to access the page, post or theme asset.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]If the error is resolved, the last deactivated plugin is the culprit.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]If you skipped backing up your site at the beginning of troubleshooting, don\u2019t skip it at this point. Continue by <strong>switching your theme to a default one<\/strong> (e.g., Twenty Twenty) and run the test. If the error disappears, then your theme is the source of the problem. In that case, contact the theme\u2019s customer support for further assistance.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Final Thoughts<\/h2>\n<p>[\/vc_column_text][vc_column_text]Apart from solving your problem, you had an opportunity to learn how your website works. Keep this tutorial on how to fix 404 Not Found WordPress errors in your bookmarks, since you\u2019ll likely run into the error again. Be fully prepared when it happens next time![\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Have you run into a 404 not found WordPress error? Don&#8217;t worry, in this tutorial we will show you several ways you can fix it.<\/p>\n","protected":false},"author":11229,"featured_media":8035,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[4,52,13],"class_list":["post-6050","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-tips","tag-troubleshooting","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/6050","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/users\/11229"}],"replies":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/comments?post=6050"}],"version-history":[{"count":0,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/6050\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media\/8035"}],"wp:attachment":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media?parent=6050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/categories?post=6050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/tags?post=6050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}