网络安全 频道

引擎优化:用ISAPI_Rewrite实现asp的静态化

 

ASP网站程序在国内运用很广,但是类似于im286.asp?id=20050307213811这样的URL有点不利于搜索引擎的收录,也就是说不符合友好URL(URLs-Friendly)的标准,那么我们用ISAPI_Rewrite打造一个Clean URL,让蜘蛛欢欢喜喜的来爬你的站吧.

1.下载ISAPI_Rewrite.ISAPI_Rewrite分精简(Lite)和完全(Full)版.精简版不支持对每个虚拟主机站点进行重写,只能进行全局处理.不过对于有服务器的朋友,精简版也就够啦.精简版下载地址:http://www.helicontech.com/download/,就是那Lite Version (free)啦.

本地下载:ISAPI_Rewrite(Ver:0053)


2.安装.msi的文件,和装一般程序一样装就可以了,俺就装在D:/ISAPI_Rewrite.
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=''Click here to open new window/nCTRL+Mouse wheel to zoom in/out'';}" border=0>

3.接下来一步比较重要哦,看仔细喽.打开Internet 信息服务,右键,web站点属性,点ISAPI筛选器选项卡.添加筛选器,名称自己填,路径自己指定ISAPI_Rewrite.dll,然后确定.
Click here to open new window/nCTRL+Mouse wheel to zoom in/outscreen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=''Click here to open new window/nCTRL+Mouse wheel to zoom in/out'';}" border=0 resized="true">

4.来测试一下.新建一个1ting.asp,里面写上
    
<%=request.querystring("inso")%>

,效果就是执行的时候1ting.asp?inso=12345678 //浏览器显示12345678.
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=''Click here to open new window/nCTRL+Mouse wheel to zoom in/out'';}" border=0>
0