ecshop urlrewrite规则
ecshop2.6.2_beta1版的urlrewrite终于没什么问题,保存一份======================
今天发现rss里的url不能用, 自己加了句
RewriteRule ^(.*)/goods-(+)(.*)\.html(.*)$ $1/goods\.php\?id=$2
我的完整urlrewrite如下: (下载httpd.rar可以直接使用) 你可以访问www.i123.cn测试,我在这个网站进行了测试
# Helicon ISAPI_Rewrite configuration file# Version 3.1.0.60RewriteEngine OnRewriteCompatibility2 OnRepeatLimit 200RewriteBase # unsupported directive: # RewriteCond %{HTTP:Host} (?:www\.)?site1\.comRewriteCond %{{HTTP:Host}} ^www.i123.cn$RewriteRule ^(.*)/index.html$ $1/index\.php RewriteRule ^(.*)/category$ $1/index\.php RewriteRule ^(.*)/feed-c(+).xml$ $1/feed\.php\?cat=$2 RewriteRule ^(.*)/feed-b(+).xml$ $1/feed\.php\?brand=$2 RewriteRule ^(.*)/feed.xml$ $1/feed\.php RewriteRule ^(.*)/category-(+)-b(+)-min(+)-max(+)-attr([^-]*)-(+)-(.+)-(+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6&page=$7&sort=$8&order=$9 RewriteRule ^(.*)/category-(+)-b(+)-min(+)-max(+)-attr([^-]*)\.html$ $1/category\.php\?id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6 RewriteRule ^(.*)/category-(+)-b(+)-(+)-(.+)-(+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3&page=$4&sort=$5&order=$6 RewriteRule ^(.*)/category-(+)-b(+)-(+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3&page=$4 RewriteRule ^(.*)/category-(+)-b(+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3 RewriteRule ^(.*)/category-(+)(.*)\.html$ $1/category\.php\?id=$2 RewriteRule ^(.*)/category-(+)-b(+)\.html(.*)$ $1/category\.php\?$4&id=$2&brand=$3RewriteRule ^(.*)/goods-(+)(.*)\.html(.*)$ $1/goods\.php\?id=$2 RewriteRule ^(.*)/goods-(+)(.*)\.html$ $1/goods\.php\?id=$2 RewriteRule ^(.*)/article_cat-(+)-(+)-(.+)-(+)(.*)\.html$ $1/article_cat\.php\?id=$2&page=$3&sort=$4&order=$5 RewriteRule ^(.*)/article_cat-(+)-(+)(.*)\.html$ $1/article_cat\.php\?id=$2&page=$3 RewriteRule ^(.*)/article_cat-(+)(.*)\.html$ $1/article_cat\.php\?id=$2 RewriteRule ^(.*)/article-(+)(.*)\.html$ $1/article\.php\?id=$2 RewriteRule ^(.*)/brand-(+)-c(+)-(+)-(.+)-(+)\.html$ $1/brand\.php\?id=$2&cat=$3&page=$4&sort=$5&order=$6 RewriteRule ^(.*)/brand-(+)-c(+)-(+)(.*)\.html$ $1/brand\.php\?id=$2&cat=$3&page=$4 RewriteRule ^(.*)/brand-(+)-c(+)\.html(.*)$ $1/brand\.php\?$4&id=$2&cat=$3 RewriteRule ^(.*)/brand-(+)-c(+)(.*)\.html$ $1/brand\.php\?id=$2&cat=$3 RewriteRule ^(.*)/brand-(+)(.*)\.html$ $1/brand\.php\?id=$2 RewriteRule ^(.*)/tag-(.*)\.html$ $1/search\.php\?keywords=$2 RewriteRule ^(.*)/snatch-(+)\.html$ $1/snatch\.php\?id=$2 RewriteRule ^(.*)/group_buy-(+)\.html$ $1/group_buy\.php\?act=view&id=$2 RewriteRule ^(.*)/auction-(+)\.html$ $1/auction\.php\?act=view&id=$2 RewriteRule ^(.*)/exchange-id(+)(.*)\.html$ $1/exchange\.php\?id=$2&act=view RewriteRule ^(.*)/exchange-(+)-min(+)-max(+)-(+)-(.+)-(+)(.*)\.html$ $1/exchange\.php\?cat_id=$2&integral_min=$3&integral_max=$4&page=$5&sort=$6&order=$7 RewriteRule ^(.*)/exchange-(+)-(+)-(.+)-(+)(.*)\.html$ $1/exchange\.php\?cat_id=$2&page=$3&sort=$4&order=$5 RewriteRule ^(.*)/exchange-(+)-(+)(.*)\.html$ $1/exchange\.php\?cat_id=$2&page=$3 RewriteRule ^(.*)/exchange-(+)(.*)\.html$ $1/exchange\.php\?cat_id=$2
页:
[1]