{"id":15901,"date":"2019-07-23T13:18:43","date_gmt":"2019-07-23T11:18:43","guid":{"rendered":"https:\/\/belvg.com\/blog\/?p=15901"},"modified":"2026-05-15T17:26:21","modified_gmt":"2026-05-15T15:26:21","slug":"how-to-create-custom-404-page-in-magento-2","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/how-to-create-custom-404-page-in-magento-2.html","title":{"rendered":"How to Create Magento 2 Custom 404 Page in 2026"},"content":{"rendered":"\n<p>Do you have any idea what an HTTP status code is? Have you ever seen 404 Page Not Found? What role does it play for any website?<\/p>\n<p><!--more--><\/p>\n<p>In this article, we will describe what an HTTP status code is and pay attention to the one particular &ndash; 404 Page Not Found. We will consider its main peculiarities, its opportunities for retaining a customer on your website, and engaging customer experience. Moreover, you will discover how to create and customize the Magento 404 Page. In addition, we will describe the best 404 error page examples, which can help to convert visitors into customers. You will learn how to make a 404 page in Magento, both in the back office and programmatically. As a result, you will improve your conversions, making your ecommerce business more successful than it is now.<\/p>\n<p><b>Table of contents:<\/b><\/p>\n<p><a href=\"#step_1\">What is an HTTP response code?<br>\n<\/a><a href=\"#step_2\">What is a 404 page?<br>\n<\/a><a href=\"#step_3\">How to set up a 404 error in Magento?<br>\n<\/a><a href=\"#step_4\">How to create a noRoute processor?<\/a><\/p>\n<h2 id=\"step_1\">What is an HTTP response code?<\/h2>\n<p>HTTP stands for Hypertext Transfer Protocol, and this is a status code that a server issues as a response to a user&rsquo;s request. The interaction between the browser and your website is carried out with status codes. For example, a website page is successfully opened &ndash; the browser receives the status code, informing that the query has been received by the server and processed. Another example is when a website owner wants to redirect their visitors to another page and use the Redirection response codes for this. To learn more about redirect codes and how to work with them in Magento, explore the <a href=\"https:\/\/belvg.com\/blog\/how-to-create-url-redirect-in-magento.html\" target=\"_blank\" rel=\"noopener\">How to Create URL Redirect in Magento?<\/a> article.<\/p>\n<p>All HTTP response status codes are divided into five classes. The first digit of this code shows the class of response, while the last two digits don&rsquo;t indicate any class or category. There are 5 values for the first digit:<\/p>\n<ol>\n<li style=\"font-weight: 400;\">1xx (Informational): The request was received, continuing process.<\/li>\n<li style=\"font-weight: 400;\">2xx (Successful): The request was successfully received, understood, and accepted.<\/li>\n<li style=\"font-weight: 400;\">3xx (Redirection): To complete the request, further actions are required.<\/li>\n<li style=\"font-weight: 400;\">4xx (Client Error): The request has the wrong syntax or can&rsquo;t be completed.<\/li>\n<li style=\"font-weight: 400;\">5xx (Server Error): The server is not able to fulfill an evidently right request.<\/li>\n<\/ol>\n<p>So, there is a great variety of server errors, but the most common for any kind of websites and ecommerce, in particular, is HTTP 404 Not Found. That&rsquo;s why, let us consider its main features in detail and find out how to work with 404 Not Found in Magento.<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/magento-development\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/08\/magento-development-services.png\" width=\"481\" height=\"480\" alt=\"magento development services\" class=\"module_image\" title=\"How to Create Magento 2 Custom 404 Page in 2026\"><div class=\"module_content_part\"><h3 class=\"title\">Magento Development Services<\/h3><p class=\"module_content_text\">Take your store to the new level with BelVG Magento development services<\/p><a href=\"https:\/\/belvg.com\/magento-development\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Visit the page<\/span><\/a><\/div><\/div><\/div>\n<h2 id=\"step_2\">What is a 404 page?<\/h2>\n<p>A 404 error is a standard HTTP error message code, which means the required website couldn&rsquo;t be found on the server. It&rsquo;s a client-side error, indicating either that the webpage was removed or moved and the URL wasn&rsquo;t changed, respectively, or that the person made a mistake typing the URL.<\/p>\n<p>In other words, Page Not Found means that the users reached the domain they requested, but CMS could not find the correct content (category, product, page) with the provided URL-key.<\/p>\n<p>404 Page Not Found is also important as it covers any broken or dead links on your website.<\/p>\n<p>In 2026, 404 pages also play a role in technical SEO and Core Web Vitals. A fast-loading custom 404 page helps users stay on the site longer and gives search engines a clearer signal that the missing page is handled correctly.<\/p>\n<p>Your clients who click that broken link won&rsquo;t be redirected to the wrong page. Instead, they&rsquo;ll get an error message &ldquo;Page Not Found,&rdquo; and can go back and start once again.<\/p>\n<p>So, if you decide to build a new site, it&rsquo;s recommended to create an informative and well-designed Magento 404 page. It is possible to create a custom 404 error page, which may include a hero image, site map, witty description, search form, etc.<\/p>\n<p>Setting up a custom Magento 404 page with useful links and a search option will:<\/p>\n<ol>\n<li>Decrease bounce rate and keep clients on your site<\/li>\n<li>Improve customer engagement and increase sales<\/li>\n<li>Alleviate the negative effect of stumbling on a non-existent page<\/li>\n<\/ol>\n<p>So, creative branded custom 404 pages will be beneficial for both customers and retailers.<\/p>\n<div class=\"content_sales_info\" style=\"background-image: url(https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/03\/Sales_background.png\"><img width=\"65\" height=\"65\" src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2015\/11\/Andrey_Dubina.png\" alt=\"Andrey_Dubina\" title=\"How to Create Magento 2 Custom 404 Page in 2026\"><div class=\"content_part\"><h3 class=\"title\">Partner With Us <\/h3><span class=\"sales_content_text\">Let's discuss how to grow your business. Get a Free Quote.<\/span><\/div> <a class=\"call-to-action\" href=\"https:\/\/belvg.com\/contact?utm_source=blog&amp;utm_campaign=sales_block&amp;utm_content=middle\" target=\"_blank\" rel=\"noopener\">Talk to Andrey<\/a><\/div>\n<h2 id=\"step_3\">How to set up a 404 error in Magento?<\/h2>\n<p>Before we begin the configuration, it is necessary to check what 404 page is set in your Magento store by default.<\/p>\n<p><strong>Step #1<\/strong>: navigate to Store -&gt; Settings -&gt; Configuration.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/stores-settings-configuration.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-22995\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/stores-settings-configuration.png\" alt=\"stores settings configuration\" width=\"551\" height=\"521\" title=\"How to Create Magento 2 Custom 404 Page in 2026\"><\/a><\/p>\n<p><strong>Step #2<\/strong>: expand the General tab and select Web.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/cms-no-route-page.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-22996\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/cms-no-route-page.png\" alt=\"cms no route page\" width=\"1601\" height=\"772\" title=\"How to Create Magento 2 Custom 404 Page in 2026\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step #3<\/strong>: expand Default Pages and see the CMS No Route Page field.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/404-pages-settings.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-22997\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/404-pages-settings.png\" alt=\"404 pages settings\" width=\"888\" height=\"337\" title=\"How to Create Magento 2 Custom 404 Page in 2026\"><\/a><\/p>\n<p>It is most advisable to leave the system value for this configuration, but if you wish to alter the default settings and set up that your Magento 404 redirect customers to the homepage or any other CMS or product page, select the corresponding option from the following drop-down list.<\/p>\n<div class=\"content_sales_info\" style=\"background-image: url(https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/03\/Sales_background.png\"><img width=\"65\" height=\"65\" src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2015\/11\/Andrey_Dubina.png\" alt=\"Andrey_Dubina\" title=\"How to Create Magento 2 Custom 404 Page in 2026\"><div class=\"content_part\"><h3 class=\"title\">Partner With Us <\/h3><span class=\"sales_content_text\">Let's discuss how to grow your business. Get a Free Quote.<\/span><\/div> <a class=\"call-to-action\" href=\"https:\/\/belvg.com\/contact?utm_source=blog&amp;utm_campaign=sales_block&amp;utm_content=middle\" target=\"_blank\" rel=\"noopener\">Talk to Andrey<\/a><\/div>\n<p>Now we can commence to set up a Magento 404 page template.<\/p>\n<p><strong>Step #1<\/strong>: navigate to Content -&gt; Pages.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/content-pages-1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-22998\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/content-pages-1.png\" alt=\"content pages\" width=\"315\" height=\"313\" title=\"How to Create Magento 2 Custom 404 Page in 2026\"><\/a><\/p>\n<p><strong>Step #2<\/strong>: select the 404 Not Found page (URL key no-route) and open it in Edit mode.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/edit-404-page.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-23000\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/edit-404-page.png\" alt=\"edit 404 page\" width=\"1280\" height=\"537\" title=\"How to Create Magento 2 Custom 404 Page in 2026\"><\/a><\/p>\n<p><strong>Step #3<\/strong>: configure your Magento 404 page<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/404-page-sections.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-22999\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/404-page-sections.png\" alt=\"404 page sections\" width=\"1265\" height=\"578\" title=\"How to Create Magento 2 Custom 404 Page in 2026\"><\/a><\/p>\n<p>Expand the Content section. Here you can modify the Content Heading and the body of your 404 page not found content. The text editor in the body section allows the insertion of bullet and numbered lists, images, and links.<\/p>\n<p>Below is an example of how we altered a 404 page for our Magento store.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/custom-404-page-magento.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-23001\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/custom-404-page-magento.png\" alt=\"custom 404 page magento\" width=\"1373\" height=\"922\" title=\"How to Create Magento 2 Custom 404 Page in 2026\"><\/a><\/p>\n<p>Magento also allows you to insert different types of widgets into your 404 page, turning this error page into an additional marketing tool.<\/p>\n<p>Modern Adobe Commerce and Magento Open Source stores often use 404 pages to recommend popular products, categories, or recent searches. It helps recover lost traffic and improves user navigation.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/insert-widget-magento-404.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-23002\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/insert-widget-magento-404.jpg\" alt=\"insert widget magento 404\" width=\"1281\" height=\"717\" title=\"How to Create Magento 2 Custom 404 Page in 2026\"><\/a><\/p>\n<p>To create a widget for Magento 404, press the widget icon in the content section. Then, select the widget type and perform the necessary configurations. When done, press the Insert Widget button.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/select-widget-type-magento-404.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-23003\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/select-widget-type-magento-404.jpg\" alt=\"select widget type magento 404\" width=\"1131\" height=\"443\" title=\"How to Create Magento 2 Custom 404 Page in 2026\"><\/a><\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/magento-404-widget-example.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-23004\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/magento-404-widget-example.png\" alt=\"magento 404 widget example\" width=\"1393\" height=\"913\" title=\"How to Create Magento 2 Custom 404 Page in 2026\"><\/a><\/p>\n<p><strong>Step #4<\/strong>: expand the Design section to change the 404 page layout.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/design-404-page-magento.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-23005\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/design-404-page-magento.png\" alt=\"design 404 page magento\" width=\"1170\" height=\"232\" title=\"How to Create Magento 2 Custom 404 Page in 2026\"><\/a><\/p>\n<p>Select the layout (empty, 1 column, 2 columns, or 3 columns) in the Layout field.<\/p>\n<p>To delete the containers and blocks you do not need, enter the following code into the Layout Update XML field:<\/p>\n<p>Delete header container:<\/p>\n<pre class=\"lang:default decode:true \">&lt;referenceContainer name=\"header.panel\" remove=\"true\" \/&gt;\r\n<\/pre>\n<p>Delete footer container:<\/p>\n<pre class=\"lang:default decode:true \">&lt;referenceContainer name=\"footer-container\" remove=\"true\"\/&gt;<\/pre>\n<p>Delete search box block:<\/p>\n<pre class=\"lang:default decode:true \">&lt;referenceBlock name=\"top.search\" remove=\"true\"\/&gt;<\/pre>\n<p>Delete navigation menu block:<\/p>\n<pre class=\"lang:default decode:true \">&lt;referenceBlock name=\"navigation.sections\" remove=\"true\"\/&gt;<\/pre>\n<p>Delete Compare product block:<\/p>\n<pre class=\"lang:default decode:true \">&lt;referenceBlock name=\"catalog.compare.sidebar\" remove=\"true\"\/&gt;\r\n<\/pre>\n<p>Delete Wishlist block:<\/p>\n<pre class=\"lang:default decode:true \">&lt;referenceBlock name=\"wishlist_sidebar\" remove=\"true\" \/&gt;<\/pre>\n<p>Delete copyright block:<\/p>\n<pre class=\"lang:default decode:true \">&lt;referenceBlock name=\"copyright\" remove=\"true\"\/&gt;\r\n<\/pre>\n<p>In our case, we wrote the following code into the Layout Update XML field:<\/p>\n<pre class=\"lang:default decode:true \">&lt;container name=\"body\"&gt;\r\n&lt;referenceContainer name=\"header.panel\" remove=\"true\" \/&gt;\r\n&lt;referenceContainer name=\"footer-container\" remove=\"true\"\/&gt;\r\n&lt;referenceBlock name=\"top.search\" remove=\"true\"\/&gt;\r\n&lt;referenceBlock name=\"navigation.sections\" remove=\"true\"\/&gt;\r\n&lt;referenceBlock name=\"catalog.compare.sidebar\" remove=\"true\"\/&gt;\r\n&lt;referenceBlock name=\"wishlist_sidebar\" remove=\"true\" \/&gt;\r\n&lt;referenceBlock name=\"copyright\" remove=\"true\"\/&gt;\r\n&lt;\/container&gt;\r\n<\/pre>\n<p>When you are done, press the Save button in the upper right corner.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/404-magento-altered-layour.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-23006\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/404-magento-altered-layour.png\" alt=\"404 magento altered layout\" width=\"1139\" height=\"915\" title=\"How to Create Magento 2 Custom 404 Page in 2026\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step #4<\/strong>: flush the cache in order to see the changes you made to your 404 page.<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/magento-webdesign\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/magento-webdesign-1.png\" width=\"100\" height=\"100\" alt=\"magento webdesign\" class=\"module_image\" title=\"How to Create Magento 2 Custom 404 Page in 2026\"><div class=\"module_content_part\"><h3 class=\"title\">Magento 2 Webdesign<\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG Magento webdesign<\/p><a href=\"https:\/\/belvg.com\/magento-webdesign\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Visit the page<\/span><\/a><\/div><\/div><\/div>\n<h2 id=\"step_4\">How to create a noRoute processor?<\/h2>\n<p>Magento allows adding a custom noRoute processor. For instance, instead of showing the 404 page, you can direct the user to the search page where the query path will be the query content.<\/p>\n<p>In order to add a new noRoute processor, add the following code into your module in the&nbsp;<strong>etc\/frontend\/di.xml<\/strong> file:<\/p>\n<pre class=\"lang:default decode:true \">&lt;type name=\"Magento\\Framework\\App\\Router\\NoRouteHandlerList\"&gt;\r\n  &lt;arguments&gt;\r\n      &lt;argument name=\"handlerClassesList\" xsi:type=\"array\"&gt;\r\n          &lt;item name=\"custombvg\" xsi:type=\"array\"&gt;\r\n              &lt;item name=\"class\" xsi:type=\"string\"&gt;BelVG\\CustomNoRoute\\App\\Router\\NoRouteHandler&lt;\/item&gt;\r\n              &lt;item name=\"sortOrder\" xsi:type=\"string\"&gt;80&lt;\/item&gt;\r\n          &lt;\/item&gt;\r\n      &lt;\/argument&gt;\r\n  &lt;\/arguments&gt;\r\n&lt;\/type&gt;\r\n<\/pre>\n<p>Now, create your noRoute processor and add the logic that will execute in the event of the handler call. For instance:<\/p>\n<pre class=\"lang:default decode:true \">BelVG\\CustomNoRoute\\App\\Router\\NoRouteHandler\r\nnamespace BelVG\\CustomNoRoute\\App\\Router;\r\nclass NoRouteHandler implements \\Magento\\Framework\\App\\Router\\NoRouteHandlerInterface\r\n{\r\n\/***** &hellip;&hellip;&hellip;&hellip;.. *******\/\r\n  public function process(\\Magento\\Framework\\App\\RequestInterface $request)\r\n  {\r\n      $requestValue = ltrim($request-&gt;getPathInfo(), '\/');\r\n      $request-&gt;setParam('q', $requestValue);\r\n      $request-&gt;setModuleName('catalogsearch')-&gt;setControllerName('result')-&gt;setActionName('index');\r\n      return true;\r\n  }\r\n}\r\n<\/pre>\n<p>As a result, you will get the 404 noRoute page that you created without the custom development solution.<\/p>\n<p>In 2026, it is also recommended to monitor 404 errors regularly through Google Search Console and analytics tools. It helps identify broken internal links, outdated URLs, and indexing problems before they affect conversions or SEO performance.<\/p>\n<h2>Wrapping it up<\/h2>\n<p>All in all, we hope our article was rather informative and useful. You learned about the HTTP status code notion, what role status codes play in a website&rsquo;s operation, and what each status code type serves for. Moreover, you found out the main opportunities of 404 Page Not Found for advancing your ecommerce business. In addition, you discovered how to create and customize your Magento 404 Page that will help boost your sales and improve customer experience.<\/p>\n<p>Have you created your Magento 404 Page using our guide? Have you decreased the bounce rate or improved the customer engagement level? Share your experience with us.<\/p>\n<p>Still have questions? Want to share your opinion? Feel free to leave us a comment!<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/store.belvg.com\/\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/06\/Magento-store.belvg_.com_.png\" width=\"481\" height=\"480\" alt=\"Magento store.belvg.com\" class=\"module_image\" title=\"How to Create Magento 2 Custom 404 Page in 2026\"><div class=\"module_content_part\"><h3 class=\"title\">Magento 2 Extensions<\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG Magento extensions<\/p><a href=\"https:\/\/store.belvg.com\/\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Visit the page<\/span><\/a><\/div><\/div><\/div>\n<p>Looking for a reliable <a href=\"https:\/\/belvg.com\/magento-custom-development\" target=\"_blank\" rel=\"noopener\">Magento custom development<\/a> partner? BelVG can help!<\/p>\n\n","protected":false},"excerpt":{"rendered":"How to create custom Not Found 404 page and noRoute handler in Magento 2 ","protected":false},"author":42,"featured_media":30632,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[474,389,524],"tags":[],"class_list":["post-15901","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-ecommerce","category-magento2-development","category-magento-speed-optimization","post_format-post-format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"Discover how to create an outstanding 404 page and configure it in Magento 2.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Aliaksei Hryharenka\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/how-to-create-custom-404-page-in-magento-2.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-create-custom-404-page-in-magento-2.html#article\",\"name\":\"How to Create 404 page in Magento in 2026 | BelVG Blog\",\"headline\":\"How to Create Magento 2 Custom 404 Page in 2026\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/aleksei-grigorenko#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/07\\\/image-23.webp\",\"width\":1108,\"height\":590},\"datePublished\":\"2019-07-23T13:18:43+02:00\",\"dateModified\":\"2026-05-15T17:26:21+02:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-create-custom-404-page-in-magento-2.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-create-custom-404-page-in-magento-2.html#webpage\"},\"articleSection\":\"ECOMMERCE, Magento 2 Development, Magento Speed Optimization, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-create-custom-404-page-in-magento-2.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento2-development#listItem\",\"name\":\"Magento 2 Development\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento2-development#listItem\",\"position\":2,\"name\":\"Magento 2 Development\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento2-development\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-create-custom-404-page-in-magento-2.html#listItem\",\"name\":\"How to Create Magento 2 Custom 404 Page in 2026\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-create-custom-404-page-in-magento-2.html#listItem\",\"position\":3,\"name\":\"How to Create Magento 2 Custom 404 Page in 2026\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento2-development#listItem\",\"name\":\"Magento 2 Development\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/aleksei-grigorenko#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/aleksei-grigorenko\",\"name\":\"Aliaksei Hryharenka\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-create-custom-404-page-in-magento-2.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bc7dc67af8fb059c80185d983bee2fdba6e6500979e4cb118ee4ba0de94c7837?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Aliaksei Hryharenka\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-create-custom-404-page-in-magento-2.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-create-custom-404-page-in-magento-2.html\",\"name\":\"How to Create 404 page in Magento in 2026 | BelVG Blog\",\"description\":\"Discover how to create an outstanding 404 page and configure it in Magento 2.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-create-custom-404-page-in-magento-2.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/aleksei-grigorenko#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/aleksei-grigorenko#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/07\\\/image-23.webp\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-create-custom-404-page-in-magento-2.html\\\/#mainImage\",\"width\":1108,\"height\":590},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-create-custom-404-page-in-magento-2.html#mainImage\"},\"datePublished\":\"2019-07-23T13:18:43+02:00\",\"dateModified\":\"2026-05-15T17:26:21+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to Create 404 page in Magento in 2026 | BelVG Blog","description":"Discover how to create an outstanding 404 page and configure it in Magento 2.","canonical_url":"https:\/\/belvg.com\/blog\/how-to-create-custom-404-page-in-magento-2.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/how-to-create-custom-404-page-in-magento-2.html#article","name":"How to Create 404 page in Magento in 2026 | BelVG Blog","headline":"How to Create Magento 2 Custom 404 Page in 2026","author":{"@id":"https:\/\/belvg.com\/blog\/author\/aleksei-grigorenko#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/image-23.webp","width":1108,"height":590},"datePublished":"2019-07-23T13:18:43+02:00","dateModified":"2026-05-15T17:26:21+02:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/how-to-create-custom-404-page-in-magento-2.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/how-to-create-custom-404-page-in-magento-2.html#webpage"},"articleSection":"ECOMMERCE, Magento 2 Development, Magento Speed Optimization, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/how-to-create-custom-404-page-in-magento-2.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento2-development#listItem","name":"Magento 2 Development"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento2-development#listItem","position":2,"name":"Magento 2 Development","item":"https:\/\/belvg.com\/blog\/category\/magento2-development","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/how-to-create-custom-404-page-in-magento-2.html#listItem","name":"How to Create Magento 2 Custom 404 Page in 2026"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/how-to-create-custom-404-page-in-magento-2.html#listItem","position":3,"name":"How to Create Magento 2 Custom 404 Page in 2026","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento2-development#listItem","name":"Magento 2 Development"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/aleksei-grigorenko#author","url":"https:\/\/belvg.com\/blog\/author\/aleksei-grigorenko","name":"Aliaksei Hryharenka","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/how-to-create-custom-404-page-in-magento-2.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/bc7dc67af8fb059c80185d983bee2fdba6e6500979e4cb118ee4ba0de94c7837?s=96&d=mm&r=g","width":96,"height":96,"caption":"Aliaksei Hryharenka"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/how-to-create-custom-404-page-in-magento-2.html#webpage","url":"https:\/\/belvg.com\/blog\/how-to-create-custom-404-page-in-magento-2.html","name":"How to Create 404 page in Magento in 2026 | BelVG Blog","description":"Discover how to create an outstanding 404 page and configure it in Magento 2.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/how-to-create-custom-404-page-in-magento-2.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/aleksei-grigorenko#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/aleksei-grigorenko#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/07\/image-23.webp","@id":"https:\/\/belvg.com\/blog\/how-to-create-custom-404-page-in-magento-2.html\/#mainImage","width":1108,"height":590},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/how-to-create-custom-404-page-in-magento-2.html#mainImage"},"datePublished":"2019-07-23T13:18:43+02:00","dateModified":"2026-05-15T17:26:21+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"15901","title":"How to Create 404 page in Magento in 2026 | #site_title","description":"Discover how to create an outstanding 404 page and configure it in Magento 2.","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:37:08","updated":"2026-11-03 18:37:08"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/magento2-development\" title=\"Magento 2 Development\">Magento 2 Development<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Create Magento 2 Custom 404 Page in 2026\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Magento 2 Development","link":"https:\/\/belvg.com\/blog\/category\/magento2-development"},{"label":"How to Create Magento 2 Custom 404 Page in 2026","link":"https:\/\/belvg.com\/blog\/how-to-create-custom-404-page-in-magento-2.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/15901","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/42"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=15901"}],"version-history":[{"count":9,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/15901\/revisions"}],"predecessor-version":[{"id":30633,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/15901\/revisions\/30633"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/30632"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=15901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=15901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=15901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}