IIS中实现http自动转换到https

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>

posted @ 2016-09-23 11:29  kylin2016  阅读(1152)  评论(0编辑  收藏  举报