首页 > CMS建站 > PJBlog > 正文

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

2020-10-05 17:48:52
字体:
来源:转载
供稿:网友
修改处理

在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 : 文件无法被打开" 的错误了
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选