ASPCMS友情链接识别https
在对ASPCMS网站进行https改造过程中,遇到了很多问题,例如不能添加https的友情链接,改造完成后不能登录后台等问题。今天电商博客就aspcms如何添加https的友情链接,记录一下我的解决办法。
ASPCMS友情链接识别https的方法
1、打开根目录inc文件夹下AspCms_CommonFun.asp文件
2、查找 if not isNul(str) and left(str,7)="http://" then isUrl=true 这段代码,大概在345行。
3、复制以下代码覆盖以上查找到的代码
if not isNul(str) and left(str,7)="http://" or left(str,8)="https://" then isUrl=true
初始代码
'是否为URL Function isUrl(str) isUrl=false if not isNul(str) and left(str,7)="http://" then isUrl=true End Function
修改后的代码
'是否为URL Function isUrl(str) isUrl=false if not isNul(str) and left(str,7)="http://" or left(str,8)="https://" then isUrl=true End Function
头条新闻
文章不错非常喜欢
@头条新闻:认真学习一下