| 插件 | 站群分站SEO优化插件 V3.27 |
| 应用作者 | 小波设计 |
| 发布时间 | 2019-04-20 11:00:53 |
| 更新时间 | 2025-10-10 17:03:20 |
小波站群分站插件伪静态无效怎么弄?
使用插件给出下面的代码设置伪静态无效。 分站要做成子目录形式。
list($a) = explode('/', CMSURI);
$file = WRITEPATH.'linkage/1_fenzhan/id.cache';
$arr = json_decode(file_get_contents($file), true);
if ($a && in_array($a, $arr)) {
return [
"([a-z]+)\/show-([0-9]+).html(.*)" => 'index.php?s=fenzhan&fid=$1&c=show&id=$2',
"([a-z]+)\/list-([0-9]+).html(.*)" => 'index.php?s=fenzhan&fid=$1&c=category&id=$2',
"([a-z]+)\/list-([0-9]+)-([0-9]+).html(.*)" => 'index.php?s=fenzhan&fid=$1&c=category&id=$2&page=$3',
"([a-z]+)" => 'index.php?s=fenzhan&fid=$1',
];
}