.htaccess 多域名分组重定向

建立.htaccess文件并根据需求重写分组信息

RewriteEngine On
RewriteBase /

# 分组1 - 67840.me等多个域名跳转至http://xn--y7yv9l01b.xn--fiqs8s
 RewriteCond %{HTTP_HOST} ^67840.me|www.67840.me|67840.TOP|www.67840.TOP|67840.pro|www.67840.pro|67840.win|www.67840.win|PAIPA.WIN|www.PAIPA.WIN [NC]
 RewriteRule ^.*$ http://xn--y7yv9l01b.xn--fiqs8s [R=301,L,NC]

# 分组2 - sex-plaything.com等多个域名跳转至http://xn--ubt27hy62c.xn--fiqs8s
 RewriteCond %{HTTP_HOST} ^sex-plaything.com|www.sex-plaything.com|sexy-stores.com|www.sexy-stores.com|18STOP.com|www.18STOP.com|SEXY.CD|www.SEXY.CD|SEXY.TC|www.SEXY.TC|SEXY.VG|www.SEXY.VG [NC]
 RewriteRule ^.*$ http://xn--ubt27hy62c.xn--fiqs8s [R=301,L,NC]

# 分组3 - goat-peak.com等多个域名跳转至https://shop136593820.taobao.com
 RewriteCond %{HTTP_HOST} ^goat-peak.com|www.goat-peak.com|goatoutdoor.com|www.goatoutdoor.com [NC]
 RewriteRule ^.*$ https://shop136593820.taobao.com [R=301,L,NC]

# 分组4 - 除以上已设定规则外的所有域名都跳转到http://www.cloudssafe.com/
 RewriteCond %{HTTP_HOST} !^www.cloudssafe.com$ [NC]
 RewriteRule ^(.*)$ http://www.cloudssafe.com/$1 [L,R=301]

以下域名均指向103.239.98.140,由.htaccess文件判断后分组转发。

分组1 分组2 分组3 分组4
67840.me sex-plaything.com goat-peak.com 赛夫.中国
www.67840.me www.sex-plaything.com www.goat-peak.com www.CloudsSAFE.com
67840.TOP sexy-stores.com goatoutdoor.com CloudsSAFE.com
www.67840.TOP www.sexy-stores.com www.goatoutdoor.com KMSSE.COM
67840.pro 18STOP.com www.KMSSE.COM
www.67840.pro www.18STOP.com KMIPC.COM
67840.win SEXY.CD www.KMIPC.COM
www.67840.win www.SEXY.CD KMGPS.COM
PAIPA.WIN SEXY.TC www.KMGPS.COM
www.PAIPA.WIN www.SEXY.TC KMNAS.COM
SEXY.VG www.KMNAS.COM
www.SEXY.VG KMVPN.NET
www.KMVPN.NET
IPC.ST
www.IPC.ST
GPS.ST
www.GPS.ST
GPS.GD
www.GPS.GD
GPS.SH
www.GPS.SH
GPS.MS
www.GPS.MS
GPS.GG
www.GPS.GG
IPC.GG
www.IPC.GG
NAS.GG
www.NAS.GG
CloudSAFE.cc
www.CloudSAFE.cc
EZVIZ.VIDEO
www.EZVIZ.VIDEO
IPCAM.WIN
www.IPCAM.WIN
IPCAM.VIP
www.IPCAM.VIP
芭芘.com
www.芭芘.com
LOO.ONE
www.LOO.ONE
GUBENZHAI.COM
www.GUBENZHAI.COM
BOX.SC
www.BOX.SC
PUB.GG
www.PUB.GG
INN.GG
www.INN.GG
RFID.VC
www.RFID.VC
CVPN.CC
www.CVPN.CC
VPNBOX.CN
www.VPNBOX.CN
爱车安.com
www.爱车安.com
iis.lc
www.iis.lc
WAR.LC
www.WAR.LC

注:分组1与分组2已变更,仅留下分组信息供参考

RelatedPost

发表评论

电子邮件地址不会被公开。 必填项已用*标注