Ecshop add 404 page

Source: Internet
Author: User

During the optimization process, 404 error processing has a huge impact on Search Engine indexing. ecshop does not do this, And ecshop program file category. PHP and goods. the following code exists in multiple pages such as PHP: ecs_header ("Location :. /\ n "); exit; it means that if you cannot find the category or product under the current ID, you will be redirected to the homepage of the website. In this way, the returned HTTP code will be 302, indicating that the page information is temporarily transferred. This type of Jump code can easily cause search engine blocking, so we need to make a 404 optimization.

Modify file:

Article. php, article_cat.php, brand. php, category. php, comment. php, goods. php, topic. php

Replace

Ecs_header ("Location:./\ n ");

Change all

Ecs_header ("HTTP/1.0 404 Not Found ");

$ Smarty-> display('404.htm ');

At the same time, the 404.htm file is stored in the template file.


Ecshop add 404 page

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.