这种设置不知有利于seo 吗

WBOY
Release: 2016-06-23 13:57:31
Original
1268 people have browsed it

大家知道php的代码转为静态的有利于优化,但是我发现ecshop默认的没有设置html静态,如图

这样的话,搜索引擎能搜到吗?就算是搜到,窃以为还是缓存一个html页面好些


回复讨论(解决方案)

if ((DEBUG_MODE & 2) != 2){    $smarty->caching = true;}$ua = strtolower($_SERVER['HTTP_USER_AGENT']);$uachar = "/(nokia|sony|ericsson|mot|samsung|sgh|lg|philips|panasonic|alcatel|lenovo|cldc|midp|mobile)/i";if(($ua == '' || preg_match($uachar, $ua))&& !strpos(strtolower($_SERVER['REQUEST_URI']),'wap')){    $Loaction = 'mobile/';    if (!empty($Loaction))    {        ecs_header("Location: $Loaction\n");        exit;    }}
Copy after login


其中的(DEBUG_MODE & 2) != 2  如何理解呢,我的理是DEBUG_MODE是一个常量,他和2按位与的话,最终不等于2

ecshop  可以开启伪静态  商店设置里面可以设置

蜘蛛搜索可以搜索的到,但是.html后缀会更有好些。

index.php与index.html的后缀现在对seo的影响已经很小了,url主要的是层次性,伪静态也更全球spider抓到

首页影响不大 

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