PJblog3 读取日志出错.3002 : 文件无法被打开

2022-12-05 0 381

修改处理

在header.asp页面,找到

复制代码 代码如下:

If InStr(Replace(LCase(Request.ServerVariables(“URL”)), “\”, “/”), “/default.asp”)<>0 Then

‘备用做304优化

‘ Dim clientEtag, serverEtag

‘ serverEtag = getEtag

‘ clientEtag = Request.ServerVariables(“HTTP_IF_NONE_MATCH”)

‘ Response.AddHeader “ETag”, getEtag

‘ if serverEtag = clientEtag then

‘ Response.Status = “304 Not Modified”

‘ Session.CodePage = 936

‘ Call CloseDB

‘ Response.end

‘ end if

Dim Tid

If CheckStr(Request.QueryString(“id”))<>Empty Then

Tid = CheckStr(Request.QueryString(“id”))

End If

If Len(Tid)>0 Then

Dim rUrl

If blog_postFile = 2 Then

rUrl = “article/” & Tid & “.htm”

else

rUrl = “article.asp?id=” & Tid

end if

RedirectUrl (rUrl)

Response.end

End If

End If

在下面添加代码

复制代码 代码如下:

‘ Added For Dynamic Article Before ::: eg:

If InStr(Replace(LCase(Request.ServerVariables(“URL”)), “\”, “/”), “/article.asp”)<>0 Then

Dim Tid2

If CheckStr(Request.QueryString(“id”))<>Empty Then

Tid2 = CheckStr(Request.QueryString(“id”))

End If

If Len(Tid2)>0 Then

Dim rUrl2

If blog_postFile = 2 Then

rUrl2 = “article/” & Tid2 & “.htm”

end if

RedirectUrl (rUrl2)

Response.end

End If

End If

如此处理之后,当网友从搜索引擎点击 http:/www.**.com/article.asp?id=478时,PJ3就会引导网友访问http://www.**.com/article/478.htm

这样就不会因日志读取不正确而出现 “读取日志出错.3002 : 文件无法被打开” 的错误了

本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。

米库模板-苹果cms模板 其他教程 PJblog3 读取日志出错.3002 : 文件无法被打开 https://www.mikucms.com/4754.html

常见问题

相关文章