互联网服务

IHS 怎么设置默认http跳转到https

IHS 怎么设置默认http跳转到https ,现在HTTP和https都可访问。网站架构师IHS+WAS.显示全部

IHS 怎么设置默认http跳转到https ,现在HTTP和https都可访问。网站架构师IHS+WAS.

收起
参与4

返回frogman的回答

frogmanfrogman软件开发工程师苏宁易购

做rewrite跳转不就可以实现了么
类似下面的:

RewriteEngine on

RewriteCond %{SERVER_PORT} !^443$

RewriteCond %{REQUEST_URI} !^/help/(.*)$

RewriteRule ^/?(.*)$ https://%{SERVER_NAME}/$1 [L,R]

互联网服务 · 2016-05-12
浏览910

回答者

frogman
软件开发工程师苏宁易购

frogman 最近回答过的问题

回答状态

  • 发布时间:2016-05-12
  • 关注会员:2 人
  • 回答浏览:910
  • X社区推广