IIS中实现http自动转换到https
修改以下文件:C:\WINDOWS\Help\iisHelp\common\403-4.htm 为以下内容
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>该页必须通过安全通道查看</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=GB2312">
</HEAD><BODY>
<script type="text/javascript">
   var url=window.location.href;
   url=url.replace("http:","https:")
   window.location.replace(url)
</script>
</BODY></HTML>

相关文章:

  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2021-04-29
  • 2021-11-21
猜你喜欢
  • 2023-01-28
  • 2021-08-27
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
相关资源
相似解决方案