Home > CMS Tutorial > ECShop > body text

How to remove index.php in ecshop

藏色散人
Release: 2021-04-01 09:09:59
Original
2189 people have browsed it

ecshop method to remove index.php: First open the website root directory and find index.php; then change "ecs_header("Location: $Loaction\n");" to "ecs_header("Location:.. .");" is enough.

How to remove index.php in ecshop

The operating environment of this article: Windows 7 system, ecshop version 4.0, DELL G3 computer

ECSHOP mall optimization removes the index.php suffix Display method

ECSHOP mall optimization removes the index.php suffix display method. ECSHOP defaults to clicking on the homepage, for example: http://www.ecshop119.com/index.php. This suffix is ​​not conducive to SEO optimization. So ECSHOP Tutorial Network today explains how to remove this index.php

Open the root directory of the website and find index.php:

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

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

Change to: ecs_header("Location: http://www.ecshop119.com");

Test the effect and open: http: //www.ecshop119.com/index.php Is there no index.php directly?

Recommended: "ECShop Tutorial"

The above is the detailed content of How to remove index.php in ecshop. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!