apache使用mod_rewrite实现页面的一个虚拟主机绑定多个域名
时间:2014-10-18 17:33 来源:linux.it.net.cn 作者:it
RewriteEngine on
# for http
RewriteCond %{HTTP_HOST} ^(www\.)?itnetcn\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/itnetcn.com/.*
RewriteCond %{SERVER_PORT} =80
RewriteRule ^(.*)$ /yi/$1 [L]
(责任编辑:IT)
RewriteEngine on
# for http (责任编辑:IT) |