ECSHOP optimization ecshop error redirection address change. In the original ECSHOP, when some products cannot be found or deleted, or access dynamic pages directly, when the parameters are lost or the database cannot find matching data, the program processes the original ECSHOP. when some products cannot be found or deleted, or access the dynamic page directly, when the parameters are lost or the database cannot find matching data, program processing points to the homepage, which is not conducive to optimization. you need to modify some page programs, such as goods. php
Access without parameters or error parameters, such as http://www.xxx.com/goods.php is switched to the home page, testing http status is 302, which is not conducive to optimization.
If ($ goods = false)
{
/* If no record is found, jump back to the home page */
Ecs_header ("Location:./\ n ");
Exit;
} Now change
If ($ goods = false)
{
/* If no record is found, jump back to the home page */
Ecs_header ('http/1.1 404 Not Found ');
Ecs_header ("status: 404 Not Found ");
Header ("refresh: 5; url = http://www.ledaokj.com ");
Print ('
Error! This page does not exist. The homepage will be returned soon...
Automatic jump in five seconds ~~~
');
Exit;
} Also, articles. php, category. php, and goods. php must be modified.
This article is reposted from Shenzhen LDO Network Technology (www.ledaokj.com) for details, refer to: ECSHOP optimization ecshop incorrect redirection address change
...