首页 > 技术交流 > ISAPI Rewrite伪静态规则httpd.ini示例
ISAPI Rewrite伪静态规则httpd.ini示例 2012-6-18
 ISAPI Rewrite的安装就不在这说明的,这给大家分享一下它的规则文件httpd.ini的示例。

# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.64

RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 32
RewriteBase
# unsupported directive: [ISAPI_Rewrite]

#  3600 = 1 hour
# unsupported directive: CacheClockRate 3600


#  Protect httpd.ini and httpd.parse.errors files
#  from accessing through HTTP
RewriteRule ^/httpd(?:\.ini|\.parse\.errors).*$ [F,I,O]

 

RewriteRule ^/products-(\d+).html$ /product\.asp\?Class_Id=$1 [NC,N]
RewriteRule ^/products-(\d+)-(\d+).html$ /product\.asp\?Class_Id=$1\&page=$2 [NC,N]

RewriteRule ^/product-(\d+).html$ /product_view\.asp\?News_Id=$1 [NC,N]

 

上一篇:百度编辑器UEditor配置使用_解决无法上传图片配置 下一篇:php rewrite伪静态Apache设置