我就想实现  
输入 www.test.com 或 test.com 时  正常访问
输入 aa.test.com 或 bb.test.com 或 aa_bb-11.test.com 时 
访问网站根目录下的\convocation\index.php文件服务器环境
Windows Server 2008(服务器系统没法改了) + Xampp其它的已经配置好,就是动态域名解析这块不会写,.htaccess 文件配置如下:Options -Indexes
Order Deny,Allow
Allow from allRewriteEngine on
RewriteCond %{HTTP_HOST} ^(.*)\.test\.com$
RewriteRule ^\convocation\index.php$ [L] #这里只要指向当前网站的跟目录下的convocation文件夹即可
我不知道是不是在.htaccess文件下配置的,现在就是实现不了,输入 aa.test.com 还是会到网站的默认首页
httpd-vhosts.conf 文件配置如下:
<VirtualHost 110.110.110.10:80>
    ServerAdmin [email protected]
    DocumentRoot "/xampp/htdocs/website"
    ServerName www.test.com
    ServerAlias *.test.com       #网站泛域名 
    ErrorLog "logs/www.test.com-error.log"
    CustomLog "logs/www.test.com-access.log" combined
</VirtualHost> 请高手指教