随笔-204  评论-90  文章-8  trackbacks-0
在httpd.conf中加入以下内容:
<VirtualHost wap.chinacars.com:80>
    ServerAdmin yi
-qiao@chinacars.com
    ServerName wap.chinacars.com
    RedirectMatch temp 
^/$ http://wap.chinacars.com/cars/
    #DocumentRoot /usr/local/apache2
    ErrorLog logs
/wap.chinacars.com-error_log
    CustomLog logs
/wap.chinacars.com-access_log common
    RewriteEngine on
    RewriteRule 
/uni-allcoolcar/(.*/uni-allcoolcar/$1 [PT]
    #RewriteRule 
/uni-all(.*)/index.do /operationview/index1.do?nappid=$1 [PT]
    #RewriteRule 
/uni-all(.*)/(.*/operationview/$2 [PT]
    RewriteRule 
/gdwapcommunity/(.*/gdwapcommunity/$1 [PT]
    RewriteRule 
/gd(.*)/index.do /gd36/index1.do?nappid=$1 [PT]
    RewriteRule 
/gd(.*)/index1.do /gd36/index1.do?nappid=$1 [PT]
RewriteRule 
/gd(.*)/(.*/gd36/$2 [PT]
   # RewriteRule 
/uni-ln(.*)/index1.do /uni-ln11/index1.do?nappid=$1 [PT]
   # RewriteRule 
/uni-ln(.*)/(.*/uni-ln11/$2 [PT]
   # RewriteRule 
/wapsms(.*)/index1.do /wapsms/index1.do?nappid=$1 [PT]
   # RewriteRule 
/wapsms(.*)/(.*/wapsms/$2 [PT]
    RewriteRule 
/uni-test(.*)/index.do /operationview-test/index1.do?nappid=$1 [PT]
    RewriteRule 
/uni-test(.*)/(.*/operationview-test/$2 [PT]
    RewriteRule 
/testshow(.*)/index1.do /testshow/index1.do?nappid=$1 [PT]
    RewriteRule 
/testshow(.*)/(.*/testshow/$2 [PT]
    RewriteRule 
/dreammoive(.*)/index1.do /Dreammoive/index1.do?nappid=$1 [PT]
    RewriteRule 
/dreammoive(.*)/(.*/Dreammoive/$2 [PT]
    RewriteRule 
/heartpic(.*)/index1.do /heartpic/index20.do?nappid=$1 [PT]
    RewriteRule 
/heartpic(.*)/(.*/heartpic/$2 [PT]
    RewriteRule 
/uni-js(.*)/index1.do /uni-js/index1.do?nappid=$1 [PT]
    RewriteRule 
/uni-js(.*)/(.*/uni-js/$2 [PT]
#configure address:
    RewriteRule 
/yidong(.*)/index.do /operationview/index1.do?nappid=$1 [PT]
    RewriteRule 
/yidong(.*)/(.*/operationview/$2 [PT]
    RewriteRule 
/liantong(.*)/index.do /operationview/index1.do?nappid=$1 [PT]
    RewriteRule 
/liantong(.*)/(.*/operationview/$2 [PT]
</VirtualHost>
#Load rewrite modules
LoadModule rewrite_module modules/mod_rewrite.so

posted on 2006-09-14 11:14 一凡 阅读(560) 评论(0)  编辑  收藏 所属分类: Linux

只有注册用户登录后才能发表评论。


网站导航: