💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
更改tags.php文件在根目录 ## tags.php 找到 `$tag = FilterSearch(urldecode($tag));` 替换为: `$tag = urldecode($tag);` ## include/arc.taglist.class.php 找到 `$this->TagInfos = $this->dsql->GetOne("Select * From `dede_tagindex` where taglike '{$this->Tag}' ");` 替换为: `$this->TagInfos = $this->dsql->GetOne("Select * From `dede_tagindex` where id like'{$this->Tag}' ");` ## include/taglib/tag.lib.php 把 `$row['keyword'] = $row['tag'];` 改为 `$row['keyword'] = $row['id'];` 找到 `$row['link'] = $cfg_cmsurl."/tags.php?/".$row['keyword']."/";` 更改为: `$row['link'] = $cfg_cmsurl."/tags/".urlencode($row['id']);` ## taglist.htm模板 `<strong>当前位置:</strong>:<a href="{dede:global.cfg_cmsurl/}/">主页</a> > <a href='tags.php'>TAG标签</a> > {dede:field.title /}` 替换为: `<strong>当前位置:</strong><a href="{dede:global.cfg_cmsurl/}/">主页</a> > <a href='/tags/'>TAG标签</a> > {dede:field.title /}` ## .htaccess文件里增加如下规则: ~~~ RewriteEngine On RewriteBase / RewriteRule ^tags/(.*)$ /tags.php?/$1 ~~~ 最后在根目录下**robots.txt**中添加 Disallow: /tags.php 防止搜索引擎重复收录。 ## 后台管理文件修改/templetes/tags_main.htm `<a href="../tags.php?/<?php echo urlencode($fields['tag']); ?>/" target="_blank">{dede:field.tag /}</a>` 修改为: `<a href="../tags/<?php echo $fields['id']; ?>/" target="_blank">{dede:field.tag /}</a>`