ECSHOP v2.0.0 ϰ汾 URL Rewrite ʹ˵

*******************************************************************************
* һApache 
*******************************************************************************

   1Ҫҵ Apache װĿ¼֮ҵ conf Ŀ¼µ httpd.conf ļ
   2Ĵ븴Ƶ httpd.conf ļУע⽫ /ecshop 滻Ϊ̵ʵ
   װĿ¼

<Directory /ecshop>
    Options FollowSymLinks
    AllowOverride All
</Directory>

   3 httpd.conf  LoadModule rewrite_moduleǰ # ɾ Apache 1.3.x汾Ҫ AddModule mod_rewrite.cǰ#ɾ
   4 httpd.conf
   5 ecshop Ŀ¼µ htaccess.txt Ϊ .htaccess
   6 Apache
   7 ecshop ->̵ã URL дΪá

*******************************************************************************
* IIS 
*******************************************************************************

    1ַ http://www.helicontech.com/download/Ѱ 
    ISAPI_RewriteISAPI_Rewrite Lite ( freeware )ǲ;ʹ
    㹻ˣҵӦý ISAPI_Rewrite Full

    ޷ַҲԵǵվأhttp://www.ecshop.com

    2صصļ isapi_rwl_x86_0064.msi ļصİ汾йأ
    аװװɹ֮밲װĿ¼Ĭ 
    C:/Program Files/Helicon/ISAPI_Rewriteҵhttpd.iniļҼļֻ
    ȥȻ룺 ʼ˵->->Helicon->ISAPI_Rewrite->httpd.ini
     httpd.ini ļ

    3ݵhttpd.iniļ
   
    4 httpd.ini ecshop ->̵ã URL дΪá


[ISAPI_Rewrite]

RewriteRule ^(.*)/index.html    $1/index.php [I]
RewriteRule ^(.*)/default.html  $1/index.php [I]

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

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 [I]
RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$                   $1/category.php?id=$2&brand=$3&page=$4  [I]
RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*)\.html$                            $1/category.php?id=$2&brand=$3  [I]
RewriteRule ^(.*)/category-([0-9]+)(.*)\.html$                                      $1/category.php?id=$2  [I]

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

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

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

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 [I]
RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html               $1/brand.php?id=$2&cat=$3&page=$4 [I]
RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)(.*)\.html                        $1/brand.php?id=$2&cat=$3 [I]
RewriteRule ^(.*)/brand-([0-9]+)(.*)\.html                                  $1/brand.php?id=$2 [I]

RewriteRule ^(.*)/tag-(.*)\.html        $1/search.php?keywords=$2 [I]
RewriteRule ^(.*)/snatch-(.*)\.html     $1/snatch.php?id=$2 [I]
RewriteRule ^(.*)/group_buy-(.*)\.html  $1/group_buy.php?act=view&id=$2 [I]
