kesioncms的部分用户,在后台基本信息设置里自动获取域名多出端口号的去除

    xiaoxiao2022-07-05  156

    由于主机商改了网站的默认端口号80的原因。

    解决方法:

    打开ks_cls/kesion.commoncls.asp

    找到

    Public Function GetAutoDomain() Dim TempPath If Request.ServerVariables("SERVER_PORT") = "80" Then GetAutoDomain = Request.ServerVariables("SERVER_NAME") Else GetAutoDomain = Request.ServerVariables("SERVER_NAME") & ":" & Request.ServerVariables("SERVER_PORT") End If If Instr(UCASE(GetAutoDomain),"/W3SVC")<>0 Then GetAutoDomain=Left(GetAutoDomain,Instr(GetAutoDomain,"/W3SVC")) End If GetAutoDomain = "http://" & GetAutoDomain End Function

    把& “:” & Request.ServerVariables(“SERVER_PORT”)删除即可。

    最新回复(0)