<html> <head><title>Redirecting...</title></head> <script language="JavaScript"> function redirectHttpToHttps() { var httpURL= window.location.hostname + window.location.pathname + window.location.search; var httpsURL= "https://"+httpURL; window.location=httpsURL; } redirectHttpToHttps(); </script> <body> </body> </html>
第三步: IIS6中, 站点属性 -》 自定义错误 -》选择 403.4 -》修改文件路径为 d:webroothttps.htm