在httpd.conf文件的末尾加上:
RewriteEngine onRewriteMap lowercase int:tolower
RewriteMap vhost E:/Ku25.com/Apache/conf/vhost.map
RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$
RewriteCond ${vhost:%1} ^(/.*)$
RewriteRule ^/(.*)$ %1/$1
在Apache\conf文件中创建文件vhost.map:
bbs.***.com /bbs