How to edit and customize 404 Page Not Found page in Magento 1.9


By default, if the customers try to access a page that does not exist, they will be redirected to the page displaying “404 Page Not Found”. However, Magento allows you to customize the content of the page so that you can send another message to the customers or redirect them to another page. This tutorial will show you how to edit and customize the “404 Page Not Found” in Magento store (working with version 1.9).

Related tutorials:

Edit 404 page content

1. Login to the backend of your Magento store.

2. From the Admin dashboard, navigate to CMS >Page.

3. Explore the Manage Pages section. Click on the 404 Not Found 1 line:

4. Explore the Page Information. From the left-side menu, select Content:

  • Edit the Content Heading and edit the content of the page in the content box.
  • Click Save Page to finish.

Customize 404 page

Now we will customize 404 page to enhance its looking, let’s say you want to add specific category listing with products to the 404 page, do as follow.

Add product listing from a specific category

Go to your theme’s layout at app/design/frontend/yourpackage/yourtheme/layout/cms.xml

In line 92 find

add the following code:

Change category name and number of columns as you want.

Add quick search box

you can add the following code to cms.xml line 92

and the code will look like this

There are even more things you can add to the 404 page, feel free to let me know by dropping a comment below

That comes to the end of the tutorial. if you have any further questions, please comment below to let us know.

Rate this post


About Author

Daniel is a Magento developer with 5 years of experience with customizing Magento extensions, Magento templates. He's main author at Magento explorer

Leave A Reply