这个是带泛域名功能的,另一个是输入WWW打开的页面,
网站同在一个目录内,我现在服务器换成WIN2003在IIS下不知道如何设置了,帮忙看看
主要是下面这个带泛域名的需要先读取go.php然后跳转<VirtualHost *:80>
ServerName  *.123.com
ServerAlias *.123.com
DocumentRoot c:/wwwroot/www5
    ErrorLog "logs/a.ljgoo.com-error.log"
    CustomLog "logs/a.ljgoo.com-access.log" common    <LocationMatch ^/go.php>
   Order allow,deny
   allow from all
</LocationMatch>        DirectoryIndex go.php   <IfModule mod_rewrite.c>
           RewriteEngine On
           #RewriteRule ^(http://)?(www\.)?([a-zA-Z]+)\.ljgoo\.com/company/(.*)$ http://www.ljgoo.com/company/index.php?city=$3
#RewriteRule ^(.*)$ /go.php
   RewriteRule ^(.*)/([a-z]+)/([a-z_]+)([0-9]+)-?([0-9]+)?.html$ $1/$2/$3.php?id=$4&page=$5
   RewriteRule ^(.*)/zb/$ $1/zb/index.php
   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 ^(.*)/sqk/$ $1/sqk/index.php
   RewriteRule ^(.*)/company/$ $1/company/index.php
#RewriteRule ^(.*)$ /go.php 
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
   </IfModule></VirtualHost>
这个是主站的,
<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>