iis rewrite URL二次重写,如何实现?
RewriteCond Host: (?!www\.)(.*)\.test\.com
RewriteRule /(.*) /home/index\.asp\?id=$1 [I,L]
这样能把http://www.test.com/home/index.asp?id=111111111
重写成:http://111111111.test.com
怎样才能实现:
把www.test.com/home/about.asp?id=111111111
重写成:http://111111111.test.com/about/