首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

为什么这里不行呢解决办法

2012-02-24 
为什么这里不行呢[ISAPI_Rewrite]UriMatchPrefixhttp://localhost/net/untitledUriFormatPrefixhttp://loc

为什么这里不行呢
[ISAPI_Rewrite]

UriMatchPrefix   http://localhost/net/untitled
UriFormatPrefix   http://localhost/net/untitled

RewriteRule   /s.htm   /webdav1.asp   [I,L]

UriMatchPrefix
UriFormatPrefix


用/webdav1.asp   能正常显示
http://localhost/net/untitled/s.htm
这个就说找不到网页
为什么呢

[解决办法]
HTML是编写网页的最简单的语言。HTML 只能用于编写静态的网页。

而 ASP 的处理过程则更复杂些。当一个用户浏览器从 Web 服务器要求一个 ASP 网页时,Web 服务器会将这个 ASP 文件发送给 Web 服务器的 ASP 引擎,ASP 引擎则将该 ASP 网页中所有的服务器端脚本转换成 HTML 代码,然后将所有 HTML 代码发送给用户浏览器。


[解决办法]
我不太清楚ISAPI_Rewrite的规则,但你可以试一下下面的

RewriteRule /net/untitled/s.htm /webdav1.asp [I,L]

如果你的webdav1.asp是与s.htm同目录的话,试一下下面的
RewriteRule /net/untitled/s.htm /net/untitled/webdav1.asp [I,L]

热点排行