想将论坛的帖子地址默认生成为:
其中4 个数字分别对应:帖子id,帖子页码id,版块页码id,版块id,官方默认的是3个数字,也就是缺少一个版块id,我在 global.func.php里想添加这一串代码,但是总是出错,要么不显示,要么就无法同步fid字段,请有经验的兄弟姐们帮帮忙!
下面是默认的rewrite thread字段,做这个的目的是为了更好的收录
目前的塞班就是这样做的,详见示例:http://bbs.dospy.com/thread-6200204-1-245-252.html
他的.htaccess文件有不同的地方,好像加了一个bbsid- RewriteRule ^archiver/([a-z0-9\-]+\.html)$ archiver/index.php?$1
- RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2
- RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$4&page=$2&bbsid=$3
- RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
- RewriteRule ^profile-(username|uid)-(.+)\.html$ viewpro.php?$1=$2
- RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
复制代码 dz5.5默认的完整的global.func.php可以从这里下载 |