读取日志时出现PJ错误。3002:文档打不开的修改方法。
修改解决在header.asp网页页面,寻找
复制代码编码以下:
IfInStr(Replace(LCase(Request.ServerVariables("URL")),"\","/"),"/default.asp")<>0Then
'预留做304提升
'DimclientEtag,serverEtag
'serverEtag=getEtag
'clientEtag=Request.ServerVariables("HTTP_IF_NONE_MATCH")
'Response.AddHeader"ETag",getEtag
'ifserverEtag=clientEtagthen
'Response.Status="304NotModified"
'Session.CodePage=936
'CallCloseDB
'Response.end
'endif
DimTid
IfCheckStr(Request.QueryString("id"))<>EmptyThen
Tid=CheckStr(Request.QueryString("id"))
EndIf
IfLen(Tid)>0Then
DimrUrl
Ifblog_postFile=2Then
rUrl="article/"&Tid&".htm"
else
rUrl="article.asp?id="&Tid
endif
RedirectUrl(rUrl)
Response.end
EndIf
EndIf
在下面加上编码
复制代码编码以下:
'AddedForDynamicArticleBefore:::eg:
IfInStr(Replace(LCase(Request.ServerVariables("URL")),"\","/"),"/article.asp")<>0Then
DimTid2
IfCheckStr(Request.QueryString("id"))<>EmptyThen
Tid2=CheckStr(Request.QueryString("id"))
EndIf
IfLen(Tid2)>0Then
DimrUrl2
Ifblog_postFile=2Then
rUrl2="article/"&Tid2&".htm"
endif
RedirectUrl(rUrl2)
Response.end
EndIf
EndIf
这般解决以后,当网民从百度搜索引擎点一下http:/www.**.com/article.asp?id=478时,PJ3便会正确引导网民浏览http://www.**.com/article/478.htm
那样就不容易因日志读取有误而出現"读取日志出错.3002:文档没法被开启"的不正确了
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)