<VirtualHost *:80>
ServerName www.a.com
ServerAlias *.a.com a.com
DocumentRoot "/home/hjl/a/htdocs"
# DocumentRoot "/home/hjl/a/htdocs"
ResinConfigServer localhost 6146
<Location /caucho-status>
SetHandler caucho-status
</Location>
RewriteEngine On
RewriteLogLevel 3
RewriteCond %{http_host} ^a.com [NC]
RewriteRule ^(.*)$ http://www.a.com$1 [L,R=301]
RewriteRule ^/path$ /
path
/ [R=301]
RewriteRule ^/
path
(/?)$ http://%{HTTP_HOST}:80/kehu.html?bussinessUrl=1&natureType=master [L,P]
RewriteRule ^/
path
/(.*)/pn(\d*)/$ http://%{HTTP_HOST}:80/kehu.html?bussinessUrl=1&natureType=master®ionUrl=$1&page=$2 [L,P]
RewriteRule ^/
path
/pn(\d*)/$ http://%{HTTP_HOST}:80/kehu.html?bussinessUrl=1&natureType=master®ionUrl=&page=$1 [L,P]
RewriteRule ^/
path
/(.*)/$ http://%{HTTP_HOST}:80/kehu.html?bussinessUrl=1&natureType=master®ionUrl=$1 [L,P]
</VirtualHost>
转载于:https://my.oschina.net/sophiedong/blog/151148