| 记录下方法,X3系列版本应该都能适用。 将:
 修改为复制代码https://tuyuanma.com/misc.php?mod=tag
修改步骤:复制代码https://tuyuanma.com/tag/
1、增加伪静态规则
 Nginx Web Server:
 IIS Web Server:复制代码rewrite ^/tag/(.+).html$ /misc.php?mod=tag&id=$1;
Apache Web Server:复制代码RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tag/(.+)\.html$ misc.php?mod=tag&id=$1
RewriteCond %{QUERY_STRING} ^(.*)
RewriteRule ^tag/\$ misc.php?mod=tag
2、修改相关模板链接,修改当前使用模板中的链接,Discuz默认模板在——template——default——tag文件夹中复制代码RewriteRule ^(.*)/tag/(.+)\.html*$ $1/misc.php\?mod=tag&id=$2
RewriteRule ^(.*)/tag/\*$ $1/misc.php\?mod=tag
3、允许搜索引擎抓取tag(dz默认是禁止的)
 打开根目录下robort.txt,找并删除下面两行:
 再打开根目录下misc.php文件,复制代码Disallow: /misc.php
Disallow: /*?mod=misc*
查找:注释或删除即可。
 |