PJblog3 读取日志出错3002 : 文件无法打开的修改方法

在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

1.本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2.分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3.不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4.本站提供的源码、模板、插件等其他资源,都不包含技术服务请大家谅解!
5.如有链接无法下载或失效,请联系管理员处理!
6.本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!