Magento How to customize the 404 page?

Source: Internet
Author: User
Magento Modify 404 Page

Magento has the default 404 page, and if you want to customize a 404 page, how to do it?

Method One

First, let's look at the default 404 page:

1.Magento CMS section, you can define it to change the error page, login background admin->cms->pages:

2. Open the 404 Not Found page and click on the content on the left to see the details of the 404 page:

3. Now to redefine the next 404 pages, for example, enter the following code:

    

D ' oh! That page can ' t be found.

don ' t get angry, and don ' t cry. Let us take the that burden. It ' s not your fault. No, really, listen to me. It ' s not your fault. We have a of hour hotline to deal and things just like this. Okay, its isn't really a hotline, its really just some encouraging words to keep trying, but hotline sounds so much.

Sorry But the page is looking for cannot is found. If you're ' re in denial and think the is a conspiracy that cannot possibly be true,

Perhaps you is here because:
  • The page has moved
  • The page is no longer exists
  • were looking for your puppy and got lost
  • Like 404 pages
What can I do?
Has no fear, help is near! There is many ways you can get back on track with Magento Demo Store.
  • Go back to the previous page.
  • CMS and Design 30
  • Use the search bar at the top of the page to search for your products.
  • Follow these links to get your back on track!
    Store Home
    My Account

4. Click Save page and reopen to see that the 404 page has changed.

Method Two

Method One, by configuring the changes in the background, in addition, you need to know, modify the 404 page, you can also modify the template to change.

1. First, change the status of 404 Not Found in CMS to disable.

2. Locate the no-route.phtml page with the path app/design/frontend/base/default/
template/cms/default/no-route.phtml, open, you will see the following code:

There was no 404 CMS page configured or found.

3. Open the foreground page again to see if it is consistent with the above code content, the front page is:

4. From this, you can modify the 404 page by modifying the template file.

The above describes the Magento how to customize the 404 page? , including the aspects of the content, want to be interested in PHP tutorial friends helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.