shopex4.8 规则如下:
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.56
RewriteBase /
RewriteCond %{REQUEST_FILENAME} .(html|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|cgi|shtml|shtm|phtm|xml)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^(.*)/archiver/((fid|tid)-[0-9]+.html)?*(.*)$ $1/archiver/index.php?$2&$4
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+).html?*(.*)$ $1/forumdisplay.php?fid=$2&page=$3&$4
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+).html?*(.*)$ $1/viewthread.php?tid=$2&extra=page%3D$4&page=$3&$4
RewriteRule ^(.*)/space-(username|uid)-(.+).html?*(.*)$ $1/space.php?$2=$3&$4
RewriteRule ^(.*)/tag-(.+).html?*(.*)$ $1/tag.php?name=$2&$3
shopex4.7 规则如下:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
#首页
RewriteRule /index.html /index.php
RewriteRule /default.html /index.php
#商店公告
RewriteRule /bulletin.html /index.php?gOo=article_list.dwt&acat=1
RewriteRule /bulletin_([0-9]+).html /index.php?gOo=article_list.dwt&acat=1&p=$1
#商品分类
RewriteRule /catalog.html /index.php?gOo=goods_category.dwt
#全部商品
RewriteRule /list.html /index.php?gOo=goods_search_list.dwt
RewriteRule /list_([0-9]+).html /index.php?gOo=goods_search_list.dwt&p=$1
#会员中心
RewriteRule /member.html /index.php?gOo=member_home.dwt
#帮助中心与常见问题
RewriteRule /faq.html /index.php?gOo=help.dwt&acat=2
RewriteRule /faq_([0-9]+).html /index.php?gOo=help.dwt&acat=2&p=$1
#安全交易
RewriteRule /safe.html /index.php?gOo=help_safe.dwt
#购买流程
RewriteRule /howtobuy.html /index.php?gOo=help_buystep.dwt
#如何付款
RewriteRule /howtopay.html /index.php?gOo=help_send.dwt
#联系我们
RewriteRule /contactus.html /index.php?gOo=help_contact.dwt
#关于我们
RewriteRule /aboutus.html /index.php?gOo=help_copyright.dwt
#顾客留言
RewriteRule /feedback.html /index.php?gOo=shopbbs.dwt
#友情链接
RewriteRule /friendlink.html /index.php?gOo=linkmore.dwt
#用户注册
RewriteRule /register.html /index.php?gOo=register_1.dwt
#忘记密码
RewriteRule /lostpass.html /index.php?gOo=forget.dwt
#商品详细页
RewriteRule /product/([0-9]+).html /index.php?gOo=goods_details.dwt&goodsid=$1
RewriteRule /product_([0-9]+).html /index.php?gOo=goods_details.dwt&goodsid=$1
RewriteRule /([0-9]+)_([^.]*).html /index.php?gOo=goods_details.dwt&goodsid=$1
#新闻详细页
RewriteRule /article_([0-9]+).html /index.php?gOo=help_details.dwt&articleid=$1
RewriteRule /message_([0-9]+).html /index.php?gOo=article_details.dwt&articleid=$1
#分类详细列表
RewriteRule /catalog_([0-9]+).html /index.php?gOo=goods_search_list.dwt&gcat=$1
RewriteRule /catalog_([0-9]+)_([0-9]+).html /index.php?gOo=goods_search_list.dwt&gcat=$1&p=$2
#收藏商品
RewriteRule /addtofavorites_([0-9]+).html /index.php?gOo=addmembergoods.do&goodsid=$1
#首页上的最新,推荐,特价商品
RewriteRule /list_([a-zA-Z]+).html /index.php?gOo=goods_search_list.dwt>ype=$1
RewriteRule /list_([a-zA-Z]+)_([0-9]+).html /index.php?gOo=goods_search_list.dwt>ype=$1&p=$2
.- 上一篇:nginx实现网站负载均衡
- 下一篇:nginx缓存cache功能介绍