小兔网

ecshop去掉index.php的方法:首先打开网站根目录找到index.php;然后将“ecs_header("Location: $Loaction\n");”修改成“ecs_header("Location:...");”即可。

ecshop怎么去掉index.php-ECShop

本文操作环境:Windows7系统、ecshop4.0版,DELL G3电脑

ECSHOP商城优化去掉index.php后缀显示方法

ECSHOP商城优化去掉index.php后缀显示方法,ECSHOP默认点击首页会例如:http://www.ecshop119.com/index.php 这样后缀这样不利于SEO优化,所以ECSHOP教程网今天讲解下怎么去掉去掉这个index.php

打开网站根目录找到index.php:

  if (!empty($Loaction))    {        ecs_header("Location: $Loaction\n");        exit;    }

把:ecs_header("Location: $Loaction\n");

改成:ecs_header("Location: http://www.ecshop119.com");

测试效果打开:http://www.ecshop119.com/index.php 是不是直接没有了index.php

推荐:《ECShop教程

以上就是ecshop怎么去掉index.php的知识。速戳>>知识兔学习精品课!