IIS Rewrite 模块实现伪静态
2013-05-25 22:17
295 查看
1. 把文件夹上传到服务器
2. 把 Rewrite.dll 配置到网站的 ISAPI 筛选器
重启IIS
附上 映射配置
[ISAPI_Rewrite]
# This is a comment
# 300 = 5 minutes
CacheClockRate 300
RepeatLimit 20
# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors) / [F,I,O]
# Some custom rules
RewriteRule /artist-(\d+)\.html /artist\.php\?id=$1 [L]
RewriteRule /artist-list-(.+)\.html /artist_list\.php\?tp=$1 [L]
RewriteRule /theme-(\d+)\.html /theme\.php\?themeid=$1 [L]
RewriteRule /theme-list\.html /theme_list\.php [L]
参考文章
http://jingyan.baidu.com/article/c74d6000478f650f6a595df4.html
http://www.sitestar.cn/help/article.php?id=111
http://www.alixixi.com/program/a/2009071056798.shtml
2. 把 Rewrite.dll 配置到网站的 ISAPI 筛选器
重启IIS
附上 映射配置
[ISAPI_Rewrite]
# This is a comment
# 300 = 5 minutes
CacheClockRate 300
RepeatLimit 20
# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors) / [F,I,O]
# Some custom rules
RewriteRule /artist-(\d+)\.html /artist\.php\?id=$1 [L]
RewriteRule /artist-list-(.+)\.html /artist_list\.php\?tp=$1 [L]
RewriteRule /theme-(\d+)\.html /theme\.php\?themeid=$1 [L]
RewriteRule /theme-list\.html /theme_list\.php [L]
参考文章
http://jingyan.baidu.com/article/c74d6000478f650f6a595df4.html
http://www.sitestar.cn/help/article.php?id=111
http://www.alixixi.com/program/a/2009071056798.shtml
相关文章推荐
- Python入门简单的静态网页爬虫2.0 (实现各模块的具体方法)
- 模块编程中静态LIB的实现【转】
- discuzX3.2部分DIY模块无法实现伪静态的解决方法
- 在Linux上实现一个可用的stateless双向静态NAT模块
- 在Linux上实现一个可用的stateless双向静态NAT模块
- Apache利用.htaccess文件重写URL隐藏入口,模块名,实现伪静态
- HTTP核心模块配置静态web服务器 7-文件操作的优化
- 通过Cache机制实现通用的配置管理模块
- (九)修改和删除部门功能模块的实现
- 模块设计与实现经验总结(四)
- 学习逆向知识之用于游戏外挂的实现.第二讲,快速寻找植物大战僵尸阳光基址.以及动态基址跟静态基址的区别
- Perl的Net::SSH::Perl模块实现远程登陆ssh
- css js实现模块内容刚好占全屏
- 【原创】自己动手实现静态资源服务器
- Python之tkinter模块实现登录功能
- IIS7中 ASP.NET授权功能如何实现对静态文件的控制
- c语言编写的cgi程序实现登陆模块
- python3.6之urllib模块代理实现
- ASP.NET伪静态的实现及伪静态的意义
- Nginx之一:实现简单HTTP模块helloworld