ISAPI_rewrite htaccess文件夹设置

发布时间:2016-07-16 10:47:33编辑:丝画阁阅读(867)

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 ^/index.html  /index.asp
RewriteRule ^/guestbook.html  /guestbook.asp
RewriteRule ^/reg.html  /login.asp
RewriteRule ^/login.html  /login.asp
RewriteRule ^/user.html  /user.asp
RewriteRule ^/logout.html  /login\.asp\?action=logout  [N,I]
RewriteRule ^/content(\d+).html  /info\.asp\?aid=$1
RewriteRule ^/help.html  /help.asp
RewriteRule ^/help-(\d+).html  /helps\.asp\?hid=$1
RewriteRule ^/quotation.html  /quotation.asp


RewriteRule ^/article.html  /NewsList.asp
RewriteRule ^/article-l(\d+).html$  /NewsList\.asp\?nid=$1  [N,I]
RewriteRule ^/article-b(\d+)_(\d+).html  /NewsList\.asp\?nid=$1&page=$2
RewriteRule ^/article-v(\d+).html  /Newsshow\.asp\?id=$1

RewriteRule ^/list_class(\d+).html$  /prolist\.asp\?cid=$1
RewriteRule ^/list_gx(\d+).html$  /prolist\.asp\?gxid=$1
RewriteRule ^/list_hotprduct.html$  /prolist\.asp\?sort=h
RewriteRule ^/list_sellprduct.html$  /prolist\.asp\?sort=s
RewriteRule ^/list.html$  /prolist.asp
RewriteRule ^/g-(\d+).html  /proshow\.asp\?id=$1

RewriteRule ^/cart.html  /probuy\.asp\?action=show
RewriteRule ^/list_arbitrage.html$  /arbitrage.asp
RewriteRule ^/sitemap.html  /sitemap.asp

RewriteRule ^/list_(\d+)_(.*)_(.*)_(\d+).html$  /prolist\.asp\?cid=$1&lx=$2&ks=$3&page=$4
RewriteRule ^/list_p(\d+).html$  /prolist\.asp\?page=$1
RewriteRule ^/list_(\d+)_p(.*).html$  /prolist\.asp\?cid=$1&page=$2

RewriteRule ^/list_l-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\w+)-(\w+)-(\w+).html$  /prolist\.asp\?cid=$1&fzid=$2&gxid=$3&mix=$4&max=$5&show=$6&sort=$7&ors=$8
RewriteRule ^/list_l-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\w+)-(\w+)-(\w+)-p(\d+).html  /prolist\.asp\?cid=$1&fzid=$2&gxid=$3&mix=$4&max=$5&show=$6&sort=$7&ors=$8&page=$9

关键字