> 常见问题
  • 常见程序的伪静态代码
  • 发布时间:2009-11-19  浏览次数:8064次

    # Discuz
    RewriteRule ^(.*)/archiver/((fid|tid)-[0-9]+\.html)\?*(.*)$ $1/archiver/index\.php\?$2&$4
    RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html$ $1/forumdisplay\.php\?fid=$2&page=$3
    RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3
    RewriteRule ^(.*)/profile-(username|uid)-(.+)\.html$ $1/viewpro\.php\?$2=$3
    RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/space\.php\?$2=$3
    RewriteRule ^(.*)/tag-(.+)\.html$ $1/tag\.php\?name=$2
    RewriteRule ^/(space|network)-(.+)\.html$ /$1\.php\?rewrite=$2 [L]
    RewriteRule ^/(space|network)\.html$ /$1\.php [L]
    RewriteRule ^/([0-9]+)$ /space\.php\?uid=$1 [L]


    # PHPWIND
    RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
    RewriteRule ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2



    #DeDeCMS
    RewriteRule ^(.*)/list-([0-9]+)-1\.html$ $1/plus/list\.php\?tid=$2
    RewriteRule ^(.*)/list-([0-9]+)-([0-9]+)\.html$ $1/plus/list\.php\?tid=$2&PageNo=$3
    RewriteRule ^(.*)/view-([0-9]+)-([0-9]+)\.html$ $1/plus/view\.php\?aid=$2&pageno=$3
    RewriteRule ^(.*)/games/([0-9]+)\.html$ $1/plus/view\.php\?aid=$2
    RewriteRule ^(.*)/games/([0-9]+)-([0-9]+)\.html$ $1/plus/view\.php\?aid=$2&pageno=$3
    RewriteRule /([a-z]+)/([0-9]+)\.html /plus/view\.php\?aid=$2 [N,I]
     


    将以上所需的代码复制至httpd.ini中即可使用