{"id":948,"date":"2024-08-03T12:00:26","date_gmt":"2024-08-03T12:00:26","guid":{"rendered":"https:\/\/www.cmsgalaxy.com\/blog\/?p=948"},"modified":"2024-08-03T12:00:28","modified_gmt":"2024-08-03T12:00:28","slug":"wordpress-error-404-not-found-error-was-encountered","status":"publish","type":"post","link":"https:\/\/www.cmsgalaxy.com\/blog\/wordpress-error-404-not-found-error-was-encountered\/","title":{"rendered":"WordPress Error: 404 Not Found error was encountered"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Error<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Not Found\nThe requested URL was not found on this server.\n\nAdditionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Solution<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;re experiencing 404 errors when trying to access specific pages on your WordPress site, but the homepage and admin login page are working fine, it could be due to a few common issues related to permalinks or server configuration. Here are some steps you can take to troubleshoot and resolve the problem:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>Check Permalinks Settings<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The most common cause of 404 errors for pages is an issue with WordPress permalinks.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Reset Permalinks:<\/strong>\n<ol class=\"wp-block-list\">\n<li>Go to your WordPress dashboard.<\/li>\n\n\n\n<li>Navigate to <strong>Settings<\/strong> > <strong>Permalinks<\/strong>.<\/li>\n\n\n\n<li>Without making any changes, click the <strong>Save Changes<\/strong> button. This action rebuilds the <code>.htaccess<\/code> file and flushes the rewrite rules.<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>Check the <code>.htaccess<\/code> File<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If resetting permalinks doesn&#8217;t work, you might need to manually update or create the <code>.htaccess<\/code> file in your WordPress root directory.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Update <code>.htaccess<\/code>:<\/strong>\n<ol class=\"wp-block-list\">\n<li>Access your site via FTP or a file manager in your hosting control panel.<\/li>\n\n\n\n<li>Find the <code>.htaccess<\/code> file in the root directory of your WordPress installation.<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Error Solution If you&#8217;re experiencing 404 errors when trying to access specific pages on your WordPress site, but the homepage<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-948","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/posts\/948","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/comments?post=948"}],"version-history":[{"count":1,"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/posts\/948\/revisions"}],"predecessor-version":[{"id":949,"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/posts\/948\/revisions\/949"}],"wp:attachment":[{"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/media?parent=948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/categories?post=948"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/tags?post=948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}