求高手,帮转个伪静态规则
[*][*]
[*]# 3600 = 1 hour
[*]CacheClockRate 3600
[*]
[*]RepeatLimit 32
[*]
[*]# Protect httpd.ini and httpd.parse.errors files
[*]# from accessing through HTTP
[*]
[*]RewriteRule ^(.*)/archiver/showforum-(+)\.html\?*(.*)$ $1/forum\.php\?mod=forumdisplay&fid=$2&archiver=1
[*]RewriteRule ^(.*)/archiver/showtopic-(+)\.html\?*(.*)$ $1/forum\.php\?mod=viewthread&tid=$2&archiver=1
[*]RewriteRule ^(.*)/showtree.aspx\?topicid=(+)&postid=(+)\?*(.*)$ $1/thread-$2-1-1\.html
[*]RewriteRule ^(.*)/showtree.aspx\?postid=(+)\?*(.*)$ $1/thread-$2-1-1\.html
[*]RewriteRule ^(.*)/showforum-(+)\.html\?*(.*)$ $1/forum-$2-1\.html
[*]RewriteRule ^(.*)/showforum-(+)(?:-(+))?\.html\?*(.*)$ $1/forum-$2-$3\.html
[*]RewriteRule ^(.*)/showforum-(+)\.aspx\?*(.*)$ $1/forum-$2-1\.html
[*]RewriteRule ^(.*)/showforum-(+)(?:-(+))?\.aspx\?*(.*)$ $1/forum-$2-$3\.html
[*]RewriteRule ^(.*)/showtopic.aspx\?topicid=(+)\?*(.*)$ $1/thread-$2-1-1\.html
[*]RewriteRule ^(.*)/showtopic-(+)\.html\?*(.*)$ $1/thread-$2-1-1\.html
[*]RewriteRule ^(.*)/showtopic-(+)-(+)\.html\?*(.*)$ $1/thread-$2-$3-1\.html
[*]RewriteRule ^(.*)/showtopic-(+)(?:-(+)(?:-(+))?)?\.html\?*(.*)$ $1/thread-$2-$3-$4\.html
[*]RewriteRule ^(.*)/showtopic-(+)\.aspx\?*(.*)$ $1/thread-$2-1-1\.html
[*]RewriteRule ^(.*)/showtopic-(+)-(+)\.aspx\?*(.*)$ $1/thread-$2-$3-1\.html
[*]RewriteRule ^(.*)/showtopic-(+)(?:-(+)(?:-(+))?)?\.aspx\?*(.*)$ $1/thread-$2-$3-$4\.html
[*]RewriteRule ^(.*)/topic-(.+)\.html\?*(.*)$ $1/portal\.php\?mod=topic&topic=$2&$3
[*]RewriteRule ^(.*)/article-(+)-(+)\.html\?*(.*)$ $1/portal\.php\?mod=view&aid=$2&page=$3&$4
[*]RewriteRule ^(.*)/forum-(\w+)-(+)\.html\?*(.*)$ $1/forum\.php\?mod=forumdisplay&fid=$2&page=$3&$4
[*]RewriteRule ^(.*)/thread-(+)-(+)-(+)\.html\?*(.*)$ $1/forum\.php\?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&$5
[*]RewriteRule ^(.*)/group-(+)-(+)\.html\?*(.*)$ $1/forum\.php\?mod=group&fid=$2&page=$3&$4
[*]RewriteRule ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$ $1/home\.php\?mod=space&$2=$3&$4
[*]RewriteRule ^(.*)/(+)-(.+)\.html\?*(.*)$ $1/$2\.php\?rewrite=$3&$4复制代码IIS的规则想转成apache 求高手,小弟在这里先谢了 有高手吗,帮帮忙
cry.gif
MARK一下,上午要开会没时间,下午还没人弄,我帮你弄。
[ 本帖最后由 小夜 于 2010-12-30 10:22 编辑 ] 拿去试一下。[*]RewriteEngine On
[*]RewriteBase /
[*]RewriteRule ^archiver/showforum-(+)\.html$ forum.php?mod=forumdisplay&fid=$1&archiver=1
[*]RewriteRule ^archiver/showtopic-(+)\.html$ forum.php?mod=viewthread&tid=$1&archiver=1
[*]RewriteRule ^showtree.aspx\?topicid=(+)&postid=(+)$ thread-$1-1-1.html
[*]RewriteRule ^showtree.aspx\?postid=(+)$ thread-$1-1-1.html
[*]RewriteRule ^showforum-(+)\.html$ forum-$1-1.html
[*]RewriteRule ^showforum-(+)(?:-(+))?\.html$ forum-$1-$2.html
[*]RewriteRule ^showforum-(+)\.aspx$ forum-$1-1.html
[*]RewriteRule ^showforum-(+)(?:-(+))?\.aspx$ forum-$1-$2.html
[*]RewriteRule ^showtopic.aspx\?topicid=(+)$ thread-$1-1-1.html
[*]RewriteRule ^showtopic-(+)\.html$ thread-$1-1-1.html
[*]RewriteRule ^showtopic-(+)-(+)\.html$ thread-$1-$2-1.html
[*]RewriteRule ^showtopic-(+)(?:-(+)(?:-(+))?)?\.html$ thread-$1-$2-$3.html
[*]RewriteRule ^showtopic-(+)\.aspx$ thread-$1-1-1.html
[*]RewriteRule ^showtopic-(+)-(+)\.aspx$ thread-$1-$2-1.html
[*]RewriteRule ^showtopic-(+)(?:-(+)(?:-(+))?)?\.aspx$ thread-$1-$2-$3.html
[*]RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1
[*]RewriteRule ^article-(+)-(+)\.html$ portal.php?mod=view&aid=$1&page=$2
[*]RewriteRule ^forum-(\w+)-(+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2
[*]RewriteRule ^thread-(+)-(+)-(+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2
[*]RewriteRule ^group-(+)-(+)\.html$ forum.php?mod=group&fid=$1&page=$2
[*]RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2
[*]RewriteRule ^(+)-(.+)\.html$ $1.php?rewrite=$2复制代码
页:
[1]