Home  >  Article  >  php教程  >  使用rewrite 来配置 apache二级域名

使用rewrite 来配置 apache二级域名

WBOY
WBOYOriginal
2016-06-08 17:27:05986browse
<script>ec(2);</script>

ServerName www.111cn.net 
  ServerAlias *.111cn.net 111cn.net 
  RewriteEngine on 
  RewriteCond %{HTTP_HOST} ^((?!www)w)+.111cn.net$ 
  RewriteRule ^/?$ /domainAction.action?subDomain=%0 [L,PT]

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn