哪位兄弟帮忙把伪静态规则转成IIS下的,我转了很多遍都不能用
PHP code
<VirtualHost *:80> ServerAdmin webmaster@localhost ServerName www.123.com ServerAlias www.123.com DocumentRoot c:/wwwroot/www5/ <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)/(zsj|sqk|company)/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-(.*)/$ $1/$2/index.php?orderid=$3&a2=$4&a3=$5&a4=$6&a5=$7&a6=$8&a7=$9 # RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)$ $1/archiver/index.php?$2 # 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 ^(.*)/space-(username|uid)-(.+)\.html$ $1/space.php?$2=$3 # RewriteRule ^(.*)/tag-(.+)\.html$ $1/tag.php?name=$2 RewriteRule ^(.*)/bbs/images/(.*) $1/bbs/images/$2 RewriteRule ^(.*)/bbs/(.*) http://bbs.ljgoo.com/$2 RewriteRule ^(.*)/([a-z]+)/([a-z]+)([0-9]+)/$ $1/$2/$3.php?uid=$4 RewriteRule ^(.*)/(sjs|yz|zs|sj)/([0-9]+)/?$ $1/$2/index.php?uid=$3 RewriteRule ^(.*)/([a-z]+)/([0-9]+)/([0-9]*)([a-z]+)([0-9]?)-([0-9a-z]+)-([0-9]+).html$ $1/$2/$5.php?uid=$3&act=$7&gate=$4&exe=$6&page=$8 RewriteRule ^(.*)/([a-z]+)/([0-9]+)/([a-z]+)-display-([a-z]+)([0-9]+).html$ $1/$2/$4.php?uid=$3&act=display&$5id=$6 RewriteRule ^(.*)/([a-z]+)/([a-z_]+)-([0-9]+)(s([0-9]+))?(i([0-9]+))?p?([0-9]+)?$ $1/$2/$3.php?btype=$4&stype=$6&id=$8&page=$9 # RewriteRule ^(.*)/(case)/(c)(([0-9]?)([0-9]?)([0-9]?)[0-9]*).html$ $1/cache/$3/$5/$6/$7/$4.htm #RewriteRule ^(.*)/([a-z]+)/(a|m)(([0-9]?)([0-9]?)([0-9]?)[0-9]*).html$ $1/cache/$3/$5/$6/$7/$4.htm RewriteRule ^(.*)/([a-z]+)/([a-z_]+)([0-9]+)-?([0-9]+)?.html$ $1/$2/$3.php?id=$4&page=$5 RewriteRule ^(.*)/([a-z]+)/([a-z_]+)([0-9]+)h.html$ $1/html/$2/$3$4h.html RewriteRule ^(.*)/([a-z]+)/([a-z_]+)-h([0-9]+)(s([0-9]+))?(i([0-9]+))?$ $1/html/$2/$3-h$4$5$7.html RewriteRule ^(.*)/zt([0-9]+)/$ $1/zt/topic.php?zid=$2 RewriteRule ^(.*)/zt([0-9]+)/([a-z_]+)([0-9]+).html$ $1/zt/$3.php?zid=$2&type=$4 </IfModule> </VirtualHost>
作者: y1219 发布时间: 2011-05-25
人气好差啊,没人知道怎么弄吗?
作者: y1219 发布时间: 2011-05-25