问个iis伪静态翻页问题
翻页源代码:<tr>
<td align="left" width="150"><%if currentpage>1 then%><img src="images/admin/jiantou.gif"> <a href="<%=filename%>?<%= temp %>page=1" title="首页">首页</a><%end if%>
<%
if currentpage>1 then
if request("page")="" then
page=1
else
page=request("page")-1
end if%>
<img src="images/admin/jiantou.gif"> <a href="<%=filename%>?<%= temp %>page=<%=page%>" title="上一页">上一页</a>
<%end if%>
</td>
<td align="center"> 第
<%
i=1
showye=totalpages
if showye>10 then
showye=12
end if
if request("page")="" then
dqpage=1
else
if csng(request("page"))>totalpages then
dqpage=totalpages
else
dqpage=request("page")
end if
end if
if dqpage>10 then
tianlu=dqpage-7
hangtian=dqpage+4
if hangtian>totalpages then
for i=tianlu to totalpages
if i=currentpage then
%><strong><font color="#FF0000"><%=i%></font></strong> <%if i<>totpage and i<>totalpages then%>
︱<%end if%><%else%><a href="<%=filename%>?<%= temp %>page=<%=i%>"><%=i%></a><%if i<>totpage and i<>totalpages then%>︱<%end if%><%end if
next
else
for i=tianlu to hangtian
if i=currentpage then
%><strong><font color="#FF0000"><%=i%></font></strong> <%if i<>totpage and i<>hangtian then%>
︱<%end if%><%else%><a href="<%=filename%>?<%= temp %>page=<%=i%>"><%=i%></a><%if i<>totpage and i<>hangtian then%>︱<%end if%><%end if
next
end if
else
for i=1 to showye
if i=currentpage then
%><strong><font color="#FF0000"><%=i%></font></strong> <%if i<>totpage and i<>12 then%>
︱<%end if%><%else%><a href="<%=filename%>?<%= temp %>page=<%=i%>"><%=i%></a><%if i<>totpage and i<>12 then%>︱<%end if%><%end if
next
end if
%>
页
</td>
<td align="right" width="150"><%
if totalpages>currentpage then
if request("page")="" then
pageee=2
else
pageee=request("page")+1
end if%>
<img src="images/admin/jiantou1.gif"> <a href="<%=filename%>?<%= temp %>page=<%=pageee%>" title="下一页">下一页</a>
<%end if%>
<%if totalpages>currentpage then%><img src="images/admin/jiantou1.gif"> <a href="<%=filename%>?<%= temp %>page=<%=totalpages%>" title="末页">末页</a><%end if%></td>
</tr>
写的规则:RewriteRule /class-(.*)-(.*)\.html /class\.asp\?larCode=$1&page=$2 [N,I]
浏览class-18.html正常,点击下一页出现:class-18.html?larCode=18&page=2并且浏览的页面不存在。我该怎么解决?
[解决办法]
按照你写的规则来看,你翻页的链接地址也要修改啊
<a href="class-<%=分类编号%>-<%=pageee%>.html" title="下一页">下一页</a>
[解决办法]
规则好像没啥问题!你试试改下链接地址
[解决办法]
IIS里的ISAPI映射做了吗?
检查文件是否存在前的那个勾去掉
[解决办法]
没啥别的办法了,你还是研究下规则,修改下分页链接,还有IIS上的ISAPI映射一定要配置对了,关于ISAPI的配置你百度下。