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