- last login
 - 2025-2-12
 - online
 - 1029  hour 
 - regtime
 - 2011-11-28
 - readperm
 - 200
 - credits
 - 3969
 - posts
 - 501
  
 
 
 
    
 | 
1. Add the "mod_rewrite" into server modules. 
 
2.Create a new rule document at /etc/lighttpd/discuzx2.conf. 
- url.rewrite-once = (
 
 - "^(.*)/topic-(.+)\.html$" => "$1/portal.php?mod=topic&topic=$2",
 
 - "^(.*)/article-([0-9]+)-([0-9]+)\.html$" => "$1/portal.php?mod=view&aid=$2",
 
 - "^(.*)/forum-(\w+)-([0-9]+)\.html$" => "$1/forum.php?mod=forumdisplay&fid=$2&page=$3",
 
 - "^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" => "$1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3",
 
 - "^(.*)/group-([0-9]+)-([0-9]+)\.html$" => "$1/forum.php?mod=group&fid=$2&page=$3",
 
 - "^(.*)/space-(username|uid)-(.+)\.html$" => "$1/home.php?mod=space&$2=$3",
 
 - "^(.*)/blog-([0-9]+)-([0-9]+)\.html$" => "$1/home.php?mod=space&uid=$2&do=blog&id=$3",
 
 - "^(.*)/(fid|tid)-([0-9]+)\.html$" => "$1/index.php?action=$2&value=$3"
 
 - )
 
  Copy the Code 
3.Add a commend into lighttpd.conf. 
 
4.Restart the http server. 
 
http://www.discuz.net/thread-2275242-1-1.html 
http://www.opendebug.com/article/532545 
 
 |   
 
  
 |