{"id":4241,"date":"2021-01-11T22:38:44","date_gmt":"2021-01-11T22:38:44","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=ht_kb&#038;p=4241"},"modified":"2024-10-16T09:36:56","modified_gmt":"2024-10-16T09:36:56","slug":"fix-wordpress-404-error","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/fix-wordpress-404-error\/","title":{"rendered":"How To Fix WordPress 404 Error"},"content":{"rendered":"<p>WordPress is a great application but sometimes a tweak or tiny change can cause the entire site to become inaccessible. The 404 error is one of the <a href=\"https:\/\/chemicloud.com\/kb\/article\/how-to-fix-common-wordpress-errors\/\" target=\"_blank\" rel=\"noopener\">common WordPress errors<\/a> and most WordPress users may experience it at some point. Finding a solution for this can be challenging, but not to worry as we&#8217;ve put together a list of solutions for you.<\/p>\n<p>Typically users who encounter this error can still access their \/wp-admin pages and their main blog page, but when they open specific posts, they are greeted with a 404 error. Don&#8217;t worry, your content is still there. This error typically happens when something happens with your .htaccess file. For example, it may have been deleted or become corrupted. However, this error can also happen when something has gone wrong with Rewrite Rules.<\/p>\n<h2 id=\"how-to-fix-wordpress-404-error\">How To Fix WordPress 404 Error<\/h2>\n<p>If your .htaccess file has become corrupted or was accidentally deleted, you can easily recreate it by updating your permalinks.<\/p>\n<p>To do this, login to your \/wp-admin, and hover over <strong>Settings<\/strong> on the left, then click <strong>Permalinks<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4244 size-medium\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/permalinks-300x256.jpg\" alt=\"\" width=\"300\" height=\"256\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/permalinks-300x256.jpg 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/permalinks-50x43.jpg 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/permalinks-60x51.jpg 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/permalinks-100x85.jpg 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/permalinks.jpg 686w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Once your <strong>Permalinks<\/strong> page has opened, click the blue <strong>Save Changes<\/strong> button at the bottom.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4245 size-large\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/savepermalinks-1024x751.jpg\" alt=\"\" width=\"1024\" height=\"751\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/savepermalinks-1024x751.jpg 1024w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/savepermalinks-300x220.jpg 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/savepermalinks-768x563.jpg 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/savepermalinks-50x37.jpg 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/savepermalinks-1536x1126.jpg 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/savepermalinks-60x44.jpg 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/savepermalinks-100x73.jpg 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/savepermalinks.jpg 1918w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>You aren&#8217;t actually making any changes but when you click Save Changes, a new .htaccess file will be generated with the default settings.<\/p>\n<p>These default <a href=\"https:\/\/chemicloud.com\/kb\/article\/wordpress-htaccess\/\" target=\"_blank\" rel=\"noopener\">WordPress .htaccess<\/a> settings appear below for reference:<\/p>\n<pre># BEGIN WordPress\r\n\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\r\n# END WordPress<\/pre>\n<p>After saving your changes, return to your website and try to load an individual post.<\/p>\n<p>If it loads without a 404 error, congrats, you&#8217;ve solved your problem!<\/p>\n<p>If the steps above didn\u2019t solve your issue, you might need to restore the website files from a backup if you have one available. If you\u2019re a ChemiCloud customer, you can rest easy! All our <strong>WordPress hosting<\/strong> plans come with 30 day daily offsite backups allowing them to be quickly restored.<\/p>\n<div class=\"hts-messages hts-messages--info \">\n<p class=\"p1\"><b>Struggling with WordPress troubleshooting? ChemiCloud is the hosting solution designed to save you time and money! <\/b><span class=\"s1\">\ud83e\udd13<\/span><b> Try our <\/b><a href=\"https:\/\/chemicloud.com\/managed-wordpress-hosting?utm_source=kb&amp;utm_medium=article#60b65e4e63b58\"><b>Managed WordPress Hosting<\/b><\/a><b> plans for just $1!<\/b><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress is a great application but sometimes a tweak or tiny change can cause the entire site to become inaccessible. The 404 error is one of the common WordPress errors and most WordPress users may experience it at some point. Finding a solution for this can be challenging, but not&#8230;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"ht-kb-category":[34],"ht-kb-tag":[],"class_list":["post-4241","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-troubleshooting"],"_links":{"self":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/4241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/comments?post=4241"}],"version-history":[{"count":9,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/4241\/revisions"}],"predecessor-version":[{"id":8490,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/4241\/revisions\/8490"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=4241"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=4241"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=4241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}