账号通
    

账号  

密码  

2214

查看

7

回复
主题:[求助]kesion asp cms有没有哪位朋友做了http跳转https成功的,指教下,谢谢! [收藏主题] 转到:  
97078097 当前离线

34

主题

0

广播

0

粉丝
添加关注
级别:学前班

用户积分:162 分
登录次数:74 次
注册时间:2011/9/6
最后登录:2019/1/10
97078097 发表于:2018/5/15 9:12:32   | 显示全部帖子 查看该作者主题 楼主 
科汛在线商城系统(NET)
是不是后台填写https://域名,保存后就变成了http://域名:443,首先解决能够保存https的域名就行了。以下是我已经成功的分享一下。可以参考网站https://www.cnzqzd.com,网址路径及图片路径都是https的。

KS_Cls/Kesion.CommonCls.asp,约724行

  1. Public Function GetAutoDomain()Dim TempPathGetAutoDomain = Request.ServerVariables("SERVER_NAME")If Instr(UCASE(GetAutoDomain),"/W3SVC")<>0 Then   GetAutoDomain=Left(GetAutoDomain,Instr(GetAutoDomain,"/W3SVC"))End IfIf Request.ServerVariables("SERVER_PORT") = "80" ThenGetAutoDomain = "http://" & GetAutoDomainelseif Request.ServerVariables("SERVER_PORT") = "443" ThenGetAutoDomain = "https://" & GetAutoDomainelseGetAutoDomain = "http://" & GetAutoDomain & ":" & Request.ServerVariables("SERVER_PORT")end ifEnd Function








G
M
T
















文本转语音功能仅限200个字符


选项 : 历史 : 反馈 : Donate关闭
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.05078秒 powered by KesionCMS 9.0