Heim  >  Artikel  >  Backend-Entwicklung  >  这种设置不知有利于seo 吗

这种设置不知有利于seo 吗

WBOY
WBOYOriginal
2016-06-23 13:57:311215Durchsuche

大家知道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;    }}


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

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

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

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

首页影响不大 

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn