discuz论坛最新回复帖子url链接实现伪静态化去除lastpost方法

discuz教程 强烈建议 2024-02-07 14:05 189 0

  当我们采用discuz论坛程序建设的网站伪静态后,在论坛版块里面点击帖子转到帖子内容页是伪静态的地址。但是当我们点击论坛首页上面出现的“最后发表”“最新发表”等帖子标题时转到的具体的帖子内容页后发现帖子的地址却是动态地址:“网站地址/forum.php?mod=redirect&tid=$forum数字&goto=lastpost”。, ,本文主要介绍如何实现最新回复帖子的伪静态—解决discuz x3首页最后发表帖子地址伪静态:, ,具体解决方法:, ,在templatedefaultforumdiscuz.htm页面 查找:, ,forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost, ,替换以上代码为:, ,thread-$forum[lastpost][tid]-1-1.html, ,【说明一下】以上代码的替换,是实现板块旁边的最近发表帖子链接的伪静态。至于dz四格的最新回复伪静态,大同小异。,是替换这个:, ,forum.php?mod=redirect&tid=$thread[lastpost][tid]&goto=lastpost#lastpost, ,修改为:, ,thread-$thread[lastpost][tid]-1-1.html,当我们采用discuz论坛程序建设的网站伪静态后,在论坛版块里面点击帖子转到帖子内容页是伪静态的地址。但是当我们点击论坛首页上面出现的“最后发表”“最新发表”等帖子标题时转到的具体的帖子内容页后发现帖子的地址却是动态地址:“网站地址/forum.php?mod=redirect&tid=$forum数字&goto=lastpost”。 本文主要介绍如何实现最新回复帖子的伪静态—解决discuz x3首页最后发表帖子地址伪静态: 具体解决方法: 在templatedefaultforumdiscuz.htm页面 查找: forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost 替换以上代码为: thread-$forum[lastpost][tid]-1-1.html 【说明一下】以上代码的替换,是实现板块旁边的最近发表帖子链接的伪静态。至于dz四格的最新回复伪静态,大同小异。 是替换这个: forum.php?mod=redirect&tid=$thread[lastpost][tid]&goto=lastpost#lastpost 修改为: thread-$thread[lastpost][tid]-1-1.html

  标签:discuzlastposturl去除链接

  上一篇

  discuz 在线升级static/image/postbg/3.jpg下载出现问题处理方法

  下一篇

  discuz 密码错误次数过多,请15 分钟后重新登录 两种的修改方法



时间:(2024-02-07 14:05:38)
本站资源均来自互联网或会员发布,如果不小心侵犯了您的权益请与我们联系。我们将立即删除!谢谢!