19
2014
05

MYPHP静态化规则

[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP

RewriteRule ^(.*)/index.html$ $1/index.php
RewriteRule ^(.*)/about.html$ $1/about.php
RewriteRule ^(.*)/about([0-9]+).html$ $1/about\.php\?aid=$2
RewriteRule ^(.*)/news.html$ $1/news.php
RewriteRule ^(.*)/news([0-9]+).html$ $1/news\.php\?aid=$2
RewriteRule ^(.*)/newspage([0-9]+).html$ $1/news\.php\?act=page&id=$2
RewriteRule ^(.*)/product.html$ $1/product.php
RewriteRule ^(.*)/product([0-9]+).html$ $1/product\.php\?pid=$2
RewriteRule ^(.*)/product([0-9]+)_([0-9]+).html$ $1/product\.php\?pid=$2&page=$3
RewriteRule ^(.*)/productpage([0-9]+).html$ $1/product\.php\?act=page&id=$2
RewriteRule ^(.*)/product_cart.html $1/product_cart.php
RewriteRule ^(.*)/case.html $1/case.php
RewriteRule ^(.*)/case([0-9]+).html$ $1/case\.php\?cid=$2
RewriteRule ^(.*)/case([0-9]+)_([0-9]+).html$ $1/case\.php\?cid=$2&page=$3
RewriteRule ^(.*)/casepage([0-9]+).html$ $1/case\.php\?act=page&id=$2
RewriteRule ^(.*)/service.html$ $1/service.php
RewriteRule ^(.*)/service([0-9]+).html$ $1/service\.php\?sid=$2
RewriteRule ^(.*)/service_question.html$ $1/service_question.php
RewriteRule ^(.*)/service_online.html$ $1/service_online.php
RewriteRule ^(.*)/person.html$ $1/person.php
RewriteRule ^(.*)/contact.html$ $1/contact.php
RewriteRule ^(.*)/contact([0-9]+).html$ $1/contact\.php\?cid=$2
RewriteRule ^(.*)/mpb.html$ $1/mpb.php
RewriteRule ^(.*)/resource.html$ $1/resource.php
RewriteRule ^(.*)resource([0-9]+).html$ $1/resource\.php\?rid=$2
RewriteRule ^(.*)/article.html$ $1/article.php
RewriteRule ^(.*)/article([0-9]+).html$ ^(.*)/article\.php\?aid=$2
RewriteRule ^(.*)/articles.html$ $1/articles.php
RewriteRule ^(.*)/down.html$ $1/down.php
RewriteRule ^(.*)/vote.html$ $1/vote.php


« 上一篇 下一篇 »