方法是到你正在使用的模板的目录小下找“discuz.htm”
如果没有到默认目录下找
templates/default/discuz.htm
用编辑器打开,注意不要用windows自带的记事本
搜索“lastpost ”
来到此处(约第67行):- <!–{elseif is_array($forum['lastpost'])}–>
- <p><a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 30)}</a></p>
复制代码 将其中的 “<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">”
修改为- <a href="thread-$forum[lastpost][tid]-1-1.html">
复制代码 再向下搜索
来到此处(约第97行):同上,将
将其中的 "<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">"
修改为- <a href="thread-$forum[lastpost][tid]-1-1.html">
复制代码 修改完后,dz论坛首页的最好发表链接就变成类似“thread-xxx-1-1.html”
这样的静态url形式了
|
上一篇: 7.2和7.1安装稳定版首页4格5格XShowv1.2.70 for 7.2(绝对可安装使用)下一篇: Discuz 7.X细节优化SEO
|