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

使用rewrite 来配置 apache二级域名

WBOY
Release: 2016-06-08 17:27:05
Original
1055 people have browsed it
<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]

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template