①文章标签 伪静态版 3.9.6[带标签接口 2.0组件](onexin_tags)

admin 发表于 Discuz!
3.9.6
优化中文标签
修复已知BUG

增强站内标签关联性,支持给门户文章、论坛贴子和家园日志增加标签以及标签伪静态。

成功安装站点:ONEXIN演示

=================标签网址方案=============================
方案一:
http://demo.onexin.com/tag.html
http://demo.onexin.com/tag-110.html

方案二:
http://demo.onexin.com/tag/
http://demo.onexin.com/tag/影响力/

方案三:
http://demo.onexin.com/tag/
http://demo.onexin.com/tag/影响力.html
注:推荐固定使用其中一种方案。

# IIS/APACHE Web Server 1
RewriteRule ^(.*)/tag(_([0-9]+))?(/|\.html)?$ $1/plugin\.php\?id=onexin_tags&page=$3&%1
RewriteRule ^(.*)/tag-(\d+)(-(\d+))?(/|\.html)?$ $1/plugin\.php\?id=onexin_tags&tagid=$2&page=$4&%1
RewriteRule ^(.*)/tag/([^\/\.]+)(/(\d+))?(/|\.html)?$ $1/plugin\.php\?id=onexin_tags&tagname=$2&page=$4&%1

# IIS/APACHE Web Server 2
RewriteRule ^tag(_([0-9]+))?(/|\.html)?$ plugin.php?id=onexin_tags&page=$2&%1
RewriteRule ^tag-(\d+)(-(\d+))?(/|\.html)?$ plugin.php?id=onexin_tags&tagid=$1&page=$3&%1
RewriteRule ^tag/([^\/\.]+)(/(\d+))?(/|\.html)?$ plugin.php?id=onexin_tags&tagname=$1&page=$3&%1

# Nginx Web Server
rewrite ^([^\.]*)/tag(_([0-9]+))?(/|\.html)?$ $1/plugin.php?id=onexin_tags&page=$3 last;
rewrite ^([^\.]*)/tag-(\d+)(-(\d+))?(/|\.html)?$ $1/plugin.php?id=onexin_tags&tagid=$2&page=$4 last;
rewrite ^([^\.]*)/tag/([^\/\.]+)(/(\d+))?(/|\.html)?$ $1/plugin.php?id=onexin_tags&tagname=$2&page=$4 last;

# IIS 7.x及以上 Web Server(独立主机用户)













=================网址说明=============================
旧规则
http://demo.onexin.com/tag.html
http://demo.onexin.com/tag-110.html

新规则(推荐目录化写法)
http://demo.onexin.com/tag/
http://demo.onexin.com/tag/影响力/

注意:新版请更新伪静态规则

评论 (0)

在线聊天