全球主机交流论坛

标题: 谁有discuz的lighttpd伪静态规则,谢谢 [打印本页]

作者: yilongge    时间: 2011-5-22 17:39
标题: 谁有discuz的lighttpd伪静态规则,谢谢
知道的朋友的分享一下。


作者: hotkk    时间: 2011-5-22 17:41
  1. $HTTP["host"] =~ “^www\.hostloc\.com$” {
  2. url.rewrite-once = (
  3. “^(.*)/archiver/([a-z0-9\-]+\.html)$” => “$1/archiver/index.php?$2″,
  4. “^(.*)/forum-([0-9]+)-([0-9]+)\.html$” => “$1/forumdisplay.php?fid=$2&page=$3″,
  5. “^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$” => “$1/viewthread.php?tid=$2&extra=page\%3D$4&page=$3″,
  6. “^(.*)/profile-(username|uid)-(.+)\.html$” => “$1/viewpro.php?$2=$3″
  7. )
  8. }
复制代码

作者: webproxy    时间: 2011-5-22 17:48
其实就是个正则嘛,都差不多的
作者: yilongge    时间: 2011-5-22 17:55
原帖由 hotkk 于 2011-5-22 17:41 发表
$HTTP["host"] =~ “^www\.hostloc\.com$” {
url.rewrite-once = (
“^(.*)/archiver/([a-z0-9\-]+\.html)$” => “$1/archiver/index.php?$2″,
“^(.*)/forum-([0-9]+)-([0-9]+)\.html$” => “$1/forumdisplay.p ...

谢谢hotkk
我试一下,
DZ论坛后台那些东西不用改吧?
作者: vpszhuji    时间: 2011-5-22 17:55
不用改
作者: yilongge    时间: 2011-5-22 17:56
谢谢楼上各位朋友,我去试试




欢迎光临 全球主机交流论坛 (https://loc.wget.at/) Powered by Discuz! X3.4