新浦京娱乐场官网.htaccess文件域名重定向

2019-06-16 02:07栏目:技术创新
TAG:

###### always access from www and redirect multiple doamins to one

rewriteCond %{http_host} ^domain.com$ [OR]
rewriteCond %{http_host} ^domain.org$ [OR]
rewriteCond %{http_host} ^www.domain.org$ [OR]
rewriteCond %{http_host} ^subdomain.domain.org$ [OR]
rewriteCond %{http_host} ^www.subdomain.domain.org$ [NC]
rewriteRule ^(.*)$ http://www.domain.com/$1 [r=301,L]

######always access from non-www and redirect multiple doamins to one

rewriteCond %{http_host} ^www.domain.com$ [NC]
rewriteRule ^(.*)$ http://domain.com/$1 [r=301,L]

版权声明:本文由新浦京娱乐站_新浦京娱乐场官网_新浦京娱乐发布于技术创新,转载请注明出处:新浦京娱乐场官网.htaccess文件域名重定向