{"id":15913,"date":"2024-09-16T13:50:32","date_gmt":"2024-09-16T17:50:32","guid":{"rendered":"https:\/\/kb.n0c.com\/?post_type=ht_kb&#038;p=15913"},"modified":"2026-07-22T15:37:36","modified_gmt":"2026-07-22T19:37:36","slug":"how-to-correct-a-404-error-on-all-wordpress-and-prestashop-pages","status":"publish","type":"ht_kb","link":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-correct-a-404-error-on-all-wordpress-and-prestashop-pages\/","title":{"rendered":"How to Correct a 404 Error on All WordPress and Prestashop Pages"},"content":{"rendered":"\n<p>This article explains what to do if all your pages return 404 errors except your main page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure for WordPress<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <a href=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/n0c-filemanager\/\">File Manager<\/a>.<\/li>\n\n\n\n<li>Locate your WP .htaccess file (you may need to enable the option to view hidden files).<\/li>\n\n\n\n<li>Make a backup copy of this file in case things go wrong.<\/li>\n\n\n\n<li>Replace the contents of the .htaccess file with the following code:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code># BEGIN WordPress\n\nRewriteEngine On\nRewriteRule .* - &#91;E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]\nRewriteBase \/\nRewriteRule ^index\\.php$ - &#91;L]\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule . \/index.php &#91;L]\n\n# END WordPress<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\">\n<li>The 404 error should disappear.<\/li>\n\n\n\n<li>If this does not work, repeat step 4 as follows: in your WP administration, select <strong>Settings<\/strong> -> <strong>Permalinks<\/strong> and save. This will regenerate the .htaccess file.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">If necessary, you can refer to the documentation available at this link\u00a0:\u00a0<a href=\"https:\/\/developer.wordpress.org\/advanced-administration\/server\/web-server\/httpd\/\">https:\/\/developer.wordpress.org\/advanced-administration\/server\/web-server\/httpd\/<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure for Prestashop<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <a href=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/n0c-filemanager\/\">File Manager<\/a>.<\/li>\n\n\n\n<li>Rename your Prestashop .htaccess files to .htaccess.old (you may need to enable the option to view hidden files).<\/li>\n\n\n\n<li>In your Prestashop administration, select <strong>Preferences<\/strong> -> <strong>SEO and URLs<\/strong>, deactivate <strong>Friendly URLs<\/strong> and click on the <strong>Save<\/strong> button.<\/li>\n\n\n\n<li>Reactivate <strong>Friendly URLs<\/strong> afterwards and save again.<\/li>\n\n\n\n<li>This will regenerate the .htaccess file.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>This article explains what to do if all your pages return 404 errors except your main page. Procedure for WordPress Procedure for Prestashop<\/p>\n","protected":false},"author":4,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[170],"ht-kb-tag":[],"class_list":["post-15913","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-cms-applications-en"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Correct a 404 Error on All WordPress and Prestashop Pages - N0C KB<\/title>\n<meta name=\"description\" content=\"This article explains what to do if all your pages return 404 errors except your main page.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-correct-a-404-error-on-all-wordpress-and-prestashop-pages\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Correct a 404 Error on All WordPress and Prestashop Pages - N0C KB\" \/>\n<meta property=\"og:description\" content=\"This article explains what to do if all your pages return 404 errors except your main page.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-correct-a-404-error-on-all-wordpress-and-prestashop-pages\/\" \/>\n<meta property=\"og:site_name\" content=\"N0C KB\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-22T19:37:36+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-correct-a-404-error-on-all-wordpress-and-prestashop-pages\\\/\",\"url\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-correct-a-404-error-on-all-wordpress-and-prestashop-pages\\\/\",\"name\":\"How to Correct a 404 Error on All WordPress and Prestashop Pages - N0C KB\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/#website\"},\"datePublished\":\"2024-09-16T17:50:32+00:00\",\"dateModified\":\"2026-07-22T19:37:36+00:00\",\"description\":\"This article explains what to do if all your pages return 404 errors except your main page.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-correct-a-404-error-on-all-wordpress-and-prestashop-pages\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-correct-a-404-error-on-all-wordpress-and-prestashop-pages\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-correct-a-404-error-on-all-wordpress-and-prestashop-pages\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/kb.n0c.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Correct a 404 Error on All WordPress and Prestashop Pages\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/#website\",\"url\":\"https:\\\/\\\/kb.n0c.com\\\/\",\"name\":\"N0C KB\",\"description\":\"Official documentation of the N0C hosting platform\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kb.n0c.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Correct a 404 Error on All WordPress and Prestashop Pages - N0C KB","description":"This article explains what to do if all your pages return 404 errors except your main page.","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:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-correct-a-404-error-on-all-wordpress-and-prestashop-pages\/","og_locale":"en_US","og_type":"article","og_title":"How to Correct a 404 Error on All WordPress and Prestashop Pages - N0C KB","og_description":"This article explains what to do if all your pages return 404 errors except your main page.","og_url":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-correct-a-404-error-on-all-wordpress-and-prestashop-pages\/","og_site_name":"N0C KB","article_modified_time":"2026-07-22T19:37:36+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-correct-a-404-error-on-all-wordpress-and-prestashop-pages\/","url":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-correct-a-404-error-on-all-wordpress-and-prestashop-pages\/","name":"How to Correct a 404 Error on All WordPress and Prestashop Pages - N0C KB","isPartOf":{"@id":"https:\/\/kb.n0c.com\/#website"},"datePublished":"2024-09-16T17:50:32+00:00","dateModified":"2026-07-22T19:37:36+00:00","description":"This article explains what to do if all your pages return 404 errors except your main page.","breadcrumb":{"@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-correct-a-404-error-on-all-wordpress-and-prestashop-pages\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-correct-a-404-error-on-all-wordpress-and-prestashop-pages\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-correct-a-404-error-on-all-wordpress-and-prestashop-pages\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/kb.n0c.com\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/kb.n0c.com\/en\/knowledge-base\/"},{"@type":"ListItem","position":3,"name":"How to Correct a 404 Error on All WordPress and Prestashop Pages"}]},{"@type":"WebSite","@id":"https:\/\/kb.n0c.com\/#website","url":"https:\/\/kb.n0c.com\/","name":"N0C KB","description":"Official documentation of the N0C hosting platform","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.n0c.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb\/15913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/comments?post=15913"}],"version-history":[{"count":10,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb\/15913\/revisions"}],"predecessor-version":[{"id":15939,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb\/15913\/revisions\/15939"}],"wp:attachment":[{"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/media?parent=15913"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb-category?post=15913"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=15913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}