{"id":11099,"date":"2021-07-07T09:44:32","date_gmt":"2021-07-07T09:44:32","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=11099"},"modified":"2021-07-07T09:44:32","modified_gmt":"2021-07-07T09:44:32","slug":"fix-404-page-not-found-error-wordpress","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/","title":{"rendered":"How to Fix the 404 Page Not Found Error in WordPress?"},"content":{"rendered":"<p>If you have been operating a WordPress website for a while, you are probably no stranger to the <strong>404 Page Not Found<\/strong>\u00a0error. Your screen will show the Page URL not found error while browsing inner pages of your website from the home page.<\/p>\n<p>One of the most common errors,\u00a0<strong>404 Page Not Found<\/strong>,\u00a0generally occurs:<\/p>\n<ul>\n<li>after transferring a new website or,<\/li>\n<li>when you modify the rules in the .htaccess file.<\/li>\n<\/ul>\n<p>We have given solutions to either of these problems.<\/p>\n<h2>I. Adding .htaccess File<\/h2>\n<p>1. Log in to your control panel and open\u00a0the\u00a0<strong>File Manager<\/strong>.<\/p>\n<p>2.\u00a0Browse the folder for your WordPress site to locate\u00a0<strong>\/wp-content\/<\/strong> and <strong>\/wp-includes\/<\/strong> folders.<\/p>\n<div class=\"kb-wisdom-wrapr kb-wisdom-key kb-wisdom-wrapr-green\">\n<div class=\"kb-wisdom-col kb-wisdom-col-icon\">\n<div class=\"kb-wisdom-icon\">\n<div><\/div>\n<\/div>\n<\/div>\n<div class=\"kb-wisdom-col kb-wisdom-col-content\">\n<p><strong>Note<\/strong>: You will have to enable the show hidden files option from the <strong>Settings<\/strong>.<\/p>\n<\/div>\n<\/div>\n<p>3. Open and edit the <strong>.htaccess<\/strong> file located in their folder.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-12161\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/07\/wp_htaccess.png\" alt=\"\" width=\"1505\" height=\"553\" \/><\/p>\n<p>4. Paste the code given below.<\/p>\n<pre class=\"lang:default decode:true  \"># 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>If the folder does not have a .htaccess file, then create a new one in that location.<\/p>\n<p>4. Click the <strong>+File<\/strong> button\u00a0on the top-right corner of the dashboard.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-12170\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/07\/cp_file-manager_create_file.png\" alt=\"\" width=\"1919\" height=\"297\" \/><\/p>\n<p>5.\u00a0Enter the name\u00a0<strong>.htaccess<\/strong> under the\u00a0<strong>New File Name<\/strong> field and click the <strong>Create New File<\/strong> button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-12172\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/07\/file_manager_create_newfile-min.jpg\" alt=\"\" width=\"629\" height=\"310\" \/><\/p>\n<p>6. Edit the file and paste the above code into it.<\/p>\n<p>This solution is enough to fix the 404 Page not found error for most cases.<\/p>\n<div class=\"kb-wisdom-wrapr kb-wisdom-info kb-wisdom-wrapr-blue\">\n<div class=\"kb-wisdom-col kb-wisdom-col-icon\">\n<div class=\"kb-wisdom-icon\">\n<div><\/div>\n<\/div>\n<\/div>\n<div class=\"kb-wisdom-col kb-wisdom-col-content\">\n<p><strong>Note<\/strong>: This problem generally occurs after moving\/migrating a website from another domain or location.<\/p>\n<\/div>\n<\/div>\n<h2>II. Revise the Permalinks Structure<\/h2>\n<p>1. Log in to WordPress Dashboard with the Admin account.<\/p>\n<p>2. Go to <strong>Settings<\/strong> and click on <strong>Permalinks<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-12158\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/07\/wp_settings_permalinks.jpg\" alt=\"\" width=\"1920\" height=\"803\" \/><\/p>\n<p>3. Select <strong>Post name <\/strong>and click on <strong>Save Changes<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-12159\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/07\/wp_permalinks_postname.jpeg\" alt=\"\" width=\"1720\" height=\"778\" \/><\/p>\n<p>The system will reset your permalink structure to the previous default setting.<\/p>\n<p>After that, WordPress automatically rewrites the .htaccess file, fixing the website&#8217;s <strong>404 Requested URL not found<\/strong> error.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have been operating a WordPress website for a while, you are probably no stranger to the 404 Page Not Found\u00a0error. Your screen will show the Page URL not found error while browsing inner pages of your website from the home page. One of the most common errors,\u00a0404 Page Not Found,\u00a0generally occurs: after transferring [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41,17],"tags":[1453,2317,2316,2315,600],"class_list":["post-11099","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-howtos","category-wordpress-faq","tag-404-error","tag-404-page-not-found-error","tag-fix-the-404-page-not-found-error-in-wordpress","tag-how-to-fix-the-404-page-not-found-error-in-wordpress","tag-wordpress-404-error"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Fix the 404 Page Not Found Error in WordPress?<\/title>\n<meta name=\"description\" content=\"This article has detailed information to troubleshoot the 404 Page Not Found Error commonly occurring on a WordPress website.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Fix the 404 Page Not Found Error in WordPress?\" \/>\n<meta property=\"og:description\" content=\"This article has detailed information to troubleshoot the 404 Page Not Found Error commonly occurring on a WordPress website.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-07T09:44:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/07\/wp_htaccess.png\" \/>\n<meta name=\"author\" content=\"Prasad Khartadkar\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prasad Khartadkar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/\",\"name\":\"How to Fix the 404 Page Not Found Error in WordPress?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/07\/wp_htaccess.png\",\"datePublished\":\"2021-07-07T09:44:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\"},\"description\":\"This article has detailed information to troubleshoot the 404 Page Not Found Error commonly occurring on a WordPress website.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/#primaryimage\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/cp_redirect_non_www-www_htaccess.jpg\",\"contentUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/cp_redirect_non_www-www_htaccess.jpg\",\"width\":1599,\"height\":561},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Fix the 404 Page Not Found Error in WordPress?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\",\"name\":\"Prasad Khartadkar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"caption\":\"Prasad Khartadkar\"},\"description\":\"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Fix the 404 Page Not Found Error in WordPress?","description":"This article has detailed information to troubleshoot the 404 Page Not Found Error commonly occurring on a WordPress website.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/","og_locale":"en_GB","og_type":"article","og_title":"How to Fix the 404 Page Not Found Error in WordPress?","og_description":"This article has detailed information to troubleshoot the 404 Page Not Found Error commonly occurring on a WordPress website.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2021-07-07T09:44:32+00:00","og_image":[{"url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/07\/wp_htaccess.png","type":"","width":"","height":""}],"author":"Prasad Khartadkar","twitter_misc":{"Written by":"Prasad Khartadkar","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/","name":"How to Fix the 404 Page Not Found Error in WordPress?","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/07\/wp_htaccess.png","datePublished":"2021-07-07T09:44:32+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e"},"description":"This article has detailed information to troubleshoot the 404 Page Not Found Error commonly occurring on a WordPress website.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/#primaryimage","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/cp_redirect_non_www-www_htaccess.jpg","contentUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/cp_redirect_non_www-www_htaccess.jpg","width":1599,"height":561},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/fix-404-page-not-found-error-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Fix the 404 Page Not Found Error in WordPress?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e","name":"Prasad Khartadkar","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","caption":"Prasad Khartadkar"},"description":"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/"}]}},"views":339,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/11099","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=11099"}],"version-history":[{"count":1,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/11099\/revisions"}],"predecessor-version":[{"id":11106,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/11099\/revisions\/11106"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=11099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=11099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=11099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}