本篇文章讲述一下使用ISAPI_Rewrite实现UrlRewrite。我使用的环境是Win2003SP2+IIS6.0。
Step1:
在http://www.isapirewrite.com/下载一个ISAPI_Rewrite3 Lite免费的版本使用。下载并安装。
Step2:
打开IIS,右键网站属性,在ISAPI_Rewrite上输写:
RewriteRule /ZBlog/catalog-([0-9]*).html /ZBlog/catalog.asp\?cate=$1
应用保存好就可以了。
Step3:
打开网址进行测试:http://tengfeiblog.vicp.net/ZBlog/catalog-1.html与http://tengfeiblog.vicp.net/ZBlog/catalog.asp?cate=1实现的效果是一样的。
最后有关ISAPI_Rewrite使用的中文手册请浏览:
http://www.biglee.cn/blog/article.asp?id=71
评论