Discuz教程网

[代码修改] Discuz论坛首页最后回复伪静态,最后发表伪静态设置方法

[复制链接]
authicon dly 发表于 2014-2-16 08:22:12 | 显示全部楼层 |阅读模式

Discuz首页最后回复伪静态,redirect.php伪静态,最后发表伪静态在默认情形下,Discuz首页“最后发表”那个URL是动态URL

redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost

这样的后果并不好,假如你论坛已经做了伪静态,想修正成thread-274-1-1.html这样的页面,替换下代码即可完成。

打开templates/default/discuz.htm

找到两处

  1. redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost
复制代码

替换成

  1. thread-$forum[lastpost][tid]-1-1.html
复制代码





上一篇:Discuz教程:在分区版块上方增加DIY模块层的方法
下一篇:能再美化下就更好了。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 22:11

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表