首页 > php代码 > 使用rewrite 来配置 apache二级域名

使用rewrite 来配置 apache二级域名

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



本文链接:http://www.phprm.com/code/33060.html

收藏随意^^请保留教程地址.

标签:none

发表留言