问:技术您好!
为何我参照后台301跳转设置界面的说明和帮助中心关于301的跳转配置https://www.west.cn/faq/list.asp?unid=805,想配置系统分配的二级域名http://klel.gotoip4.com/跳转到主域名 https://www.bbqiming.com/ ,为何不成功,反而提示“域名未解析,或服务器没有响应!” 如附图:
我目前.htaccess的跳转规则如下:RewriteCond %{HTTP_HOST} ^klel.gotoip4.com$ [NC,OR]RewriteCond %{HTTP:From-Https} !^on$ [NC] RewriteCond %{HTTP_HOST} ^(www.)?bbqiming.com$ [NC]RewriteRule ^(.*)$ https://www.bbqiming.com/$1 [R=301,L]
但就是不能实现系统分配的二级域名301跳转到主域名https://www.bbqiming.com/上,是规则有误吗?请帮忙排查下完善一下,谢谢!
答:您好,
特殊帮您调整,请测试,非常感谢您长期对我司的支持!RewriteEngine onRewriteCond %{HTTP:From-Https} !^on$ [NC] RewriteCond %{HTTP_HOST} !^www.bbqiming.com$ [NC]RewriteRule ^(.*)$ https://www.bbqiming.com/$1 [R=301,L]
问:您好! 你这么调整之后,我原来的规则做的 http://www.bbqiming.com/的各类URL 能301对应跳转到https://www.bbqiming.com/ 的各类url却不生效了? 请帮忙再调整。谢谢!
问:我最终要实现的效果是:
用户访问http://klel.gotoip4.com 或 http://klel.gotoip4.com/aa/bb/cc.htmlhttp://bbqiming.com 或 http://bbqiming.com/aa/bb/cc.htmlhttp://www.bbqiming.com 或 http://www.bbqiming.com/aa/bb/cc.html
都能301跳转到:https://www.bbqiming.com 或 https://www.bbqiming.com/aa/bb/cc.html 上。
答:您好,
已修正, 测试跳转正常(如图),请核实.非常感谢您长期对我司的支持!