标签:文件 ar art 代码 html amp htm ad
首先,确认网站是否安装了ultimate_seo_urls 伪静态模块。
修改include/classes/seo.url.php
大约126行添加代码
‘keyword‘ => ‘sale‘
大约201行添加代码
case FILENAME_ADVANCED_SEARCH_RESULT:
$link .= "index.php?main_page=advanced_search_result";
break;
大约456行添加代码
case ‘keyword‘:
switch(true){
case ($page == FILENAME_ADVANCED_SEARCH_RESULT):
$url = $this->make_url($page,"", $p2[0], $p2[1], ‘.html‘, $separator);
break;
default: $container[$p2[0]] = $p2[1];
break;
}
break;
.htaccess文件中添加规则
RewriteRule ^(.*).html$ index\.php?main_page=advanced_search_result&keywords=$2&%{QUERY_STRING} [L]
zencart搜索结果页面静态化 advanced_search_result,布布扣,bubuko.com
zencart搜索结果页面静态化 advanced_search_result
标签:文件 ar art 代码 html amp htm ad
原文地址:http://www.cnblogs.com/afish/p/3922771.html