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>
时间: 2024-10-11 00:39:08