Posts Tagged with 二级域名

posted by admin on August 22, 2008
在httpd.conf中,对某个主机进行以下操作:

<VirtualHost ip:80>
rewriteengine on
rewritecond %{HTTP_HOST} [^.]+.域名.com$
rewriterule ^(.+) %{HTTP_HOST}$1 [C]
rewriterule ([^.]+).域名.com(.*) /$1$2
其他配置文件
</VirtualHost>
阅读全文
第 1-1 条, 共 1 条.