ecshop urlrewrite规则

ecshop2.6.2_beta1版的urlrewrite终于没什么问题,保存一份

 

======================

今天发现rss里的url不能用, 自己加了句

RewriteRule ^(.*)/goods-([0-9]+)(.*)\.html(.*)$ $1/goods\.php\?id=$2 [NC]

 

我的完整urlrewrite如下:  (下载httpd.rar可以直接使用 ) 你可以访问www.i123.cn 测试,我在这个网站进行了测试

# Helicon ISAPI_Rewrite configuration file


# Version 3.1.0.60





RewriteEngine On


RewriteCompatibility2 On


RepeatLimit 200


RewriteBase 


# unsupported directive: [ISAPI_Rewrite]





# RewriteCond %{HTTP:Host} (?:www\.)?site1\.com





RewriteCond %{{HTTP:Host}} ^www.i123.cn$


RewriteRule ^(.*)/index.html$ $1/index\.php [NC]


RewriteRule ^(.*)/category$ $1/index\.php [NC]


RewriteRule ^(.*)/feed-c([0-9]+).xml$ $1/feed\.php\?cat=$2 [NC]


RewriteRule ^(.*)/feed-b([0-9]+).xml$ $1/feed\.php\?brand=$2 [NC]


RewriteRule ^(.*)/feed.xml$ $1/feed\.php [NC]


RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6&page=$7&sort=$8&order=$9 [NC]


RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)\.html$ $1/category\.php\?id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6 [NC]


RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3&page=$4&sort=$5&order=$6 [NC]


RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3&page=$4 [NC]


RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3 [NC]


RewriteRule ^(.*)/category-([0-9]+)(.*)\.html$ $1/category\.php\?id=$2 [NC]





RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)\.html(.*)$ $1/category\.php\?$4&id=$2&brand=$3





RewriteRule ^(.*)/goods-([0-9]+)(.*)\.html(.*)$ $1/goods\.php\?id=$2 [NC]


RewriteRule ^(.*)/goods-([0-9]+)(.*)\.html$ $1/goods\.php\?id=$2 [NC]


RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/article_cat\.php\?id=$2&page=$3&sort=$4&order=$5 [NC]


RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)(.*)\.html$ $1/article_cat\.php\?id=$2&page=$3 [NC]


RewriteRule ^(.*)/article_cat-([0-9]+)(.*)\.html$ $1/article_cat\.php\?id=$2 [NC]


RewriteRule ^(.*)/article-([0-9]+)(.*)\.html$ $1/article\.php\?id=$2 [NC]


RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html$ $1/brand\.php\?id=$2&cat=$3&page=$4&sort=$5&order=$6 [NC]


RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html$ $1/brand\.php\?id=$2&cat=$3&page=$4 [NC]





RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)\.html(.*)$ $1/brand\.php\?$4&id=$2&cat=$3 [NC]





RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)(.*)\.html$ $1/brand\.php\?id=$2&cat=$3 [NC]


RewriteRule ^(.*)/brand-([0-9]+)(.*)\.html$ $1/brand\.php\?id=$2 [NC]


RewriteRule ^(.*)/tag-(.*)\.html$ $1/search\.php\?keywords=$2 [NC]


RewriteRule ^(.*)/snatch-([0-9]+)\.html$ $1/snatch\.php\?id=$2 [NC]


RewriteRule ^(.*)/group_buy-([0-9]+)\.html$ $1/group_buy\.php\?act=view&id=$2 [NC]


RewriteRule ^(.*)/auction-([0-9]+)\.html$ $1/auction\.php\?act=view&id=$2 [NC]


RewriteRule ^(.*)/exchange-id([0-9]+)(.*)\.html$ $1/exchange\.php\?id=$2&act=view [NC]


RewriteRule ^(.*)/exchange-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/exchange\.php\?cat_id=$2&integral_min=$3&integral_max=$4&page=$5&sort=$6&order=$7 [NC]


RewriteRule ^(.*)/exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/exchange\.php\?cat_id=$2&page=$3&sort=$4&order=$5 [NC]


RewriteRule ^(.*)/exchange-([0-9]+)-([0-9]+)(.*)\.html$ $1/exchange\.php\?cat_id=$2&page=$3 [NC]


RewriteRule ^(.*)/exchange-([0-9]+)(.*)\.html$ $1/exchange\.php\?cat_id=$2 [NC]


你可能感兴趣的:(html,C++,c,PHP,Exchange)