{"id":523,"date":"2018-12-08T03:36:23","date_gmt":"2018-12-08T03:36:23","guid":{"rendered":"http:\/\/www.nywzjs.com\/?p=523"},"modified":"2018-12-08T03:37:06","modified_gmt":"2018-12-08T03:37:06","slug":"ecshop-%e4%bc%aa%e9%9d%99%e6%80%81%e8%a7%84%e5%88%99","status":"publish","type":"post","link":"http:\/\/www.nywzjs.com\/?p=523","title":{"rendered":"Ecshop \u4f2a\u9759\u6001\u89c4\u5219"},"content":{"rendered":"<p>1\u3001IIS\u4e0b\u3002<\/p>\n<blockquote><p>[ISAPI_Rewrite]<\/p>\n<p># \u4e3a\u4e86\u786e\u4fdd\u91cd\u5199\u89c4\u5219\u4e0d\u5f71\u54cd\u670d\u52a1\u5668\u4e0a\u7684\u5176\u4ed6\u7ad9\u70b9<br \/>\n# \u8bf7\u5c06\u4e0b\u9762\u7684\u8bed\u53e5\u524d\u7684#\u53f7\u53bb\u6389\uff0c\u5e76\u5c06(?:www\\.)?site1\\.com\u6539\u4e3a\u5546\u5e97\u6240\u5728\u57df\u540d<\/p>\n<p>#RewriteCond %{HTTP:Host} (?:www\\.)?site1\\.com<\/p>\n<p>RewriteRule ^(.*)\/index.html$ $1\/index\\.php [I]<br \/>\nRewriteRule ^(.*)\/category$ $1\/index\\.php [I]<br \/>\nRewriteRule ^(.*)\/feed-c([0-9]+).xml$ $1\/feed\\.php\\?cat=$2 [I]<br \/>\nRewriteRule ^(.*)\/feed-b([0-9]+).xml$ $1\/feed\\.php\\?brand=$2 [I]<br \/>\nRewriteRule ^(.*)\/feed-type([^-]+)\\.xml$ $1\/feed\\.php\\?type=$2 [I]<br \/>\nRewriteRule ^(.*)\/feed.xml$ $1\/feed\\.php [I]<br \/>\nRewriteRule ^(.*)\/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\\.html$ $1\/category\\.php\\?id=$2&amp;brand=$3&amp;price_min=$4&amp;price_max=$5&amp;filter_attr=$6&amp;page=$7&amp;sort=$8&amp;order=$9 [I]<br \/>\nRewriteRule ^(.*)\/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\\.html$ $1\/category\\.php\\?id=$2&amp;brand=$3&amp;price_min=$4&amp;price_max=$5&amp;filter_attr=$6 [I]<br \/>\nRewriteRule ^(.*)\/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\\.html$ $1\/category\\.php\\?id=$2&amp;brand=$3&amp;page=$4&amp;sort=$5&amp;order=$6 [I]<br \/>\nRewriteRule ^(.*)\/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\\.html$ $1\/category\\.php\\?id=$2&amp;brand=$3&amp;page=$4 [I]<br \/>\nRewriteRule ^(.*)\/category-([0-9]+)-b([0-9]+)(.*)\\.html$ $1\/category\\.php\\?id=$2&amp;brand=$3 [I]<br \/>\nRewriteRule ^(.*)\/category-([0-9]+)(.*)\\.html$ $1\/category\\.php\\?id=$2 [I]<\/p>\n<p>RewriteRule ^(.*)\/category-([0-9]+)-b([0-9]+)\\.html(.*)$ $1\/category\\.php\\?$4&amp;id=$2&amp;brand=$3<\/p>\n<p>RewriteRule ^(.*)\/goods-([0-9]+)(.*)\\.html$ $1\/goods\\.php\\?id=$2 [I]<br \/>\nRewriteRule ^(.*)\/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\\.html$ $1\/article_cat\\.php\\?id=$2&amp;page=$3&amp;sort=$4&amp;order=$5 [I]<br \/>\nRewriteRule ^(.*)\/article_cat-([0-9]+)-([0-9]+)-(.+)(.*)\\.html$ $1\/article_cat\\.php\\?id=$1&amp;page=$2&amp;keywords=$3 [I]<br \/>\nRewriteRule ^(.*)\/article_cat-([0-9]+)-([0-9]+)(.*)\\.html$ $1\/article_cat\\.php\\?id=$2&amp;page=$3 [I]<br \/>\nRewriteRule ^(.*)\/article_cat-([0-9]+)(.*)\\.html$ $1\/article_cat\\.php\\?id=$2 [I]<br \/>\nRewriteRule ^(.*)\/article-([0-9]+)(.*)\\.html$ $1\/article\\.php\\?id=$2 [I]<br \/>\nRewriteRule ^(.*)\/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\\.html $1\/brand\\.php\\?id=$2&amp;cat=$3&amp;page=$4&amp;sort=$5&amp;order=$6 [I]<br \/>\nRewriteRule ^(.*)\/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\\.html $1\/brand\\.php\\?id=$2&amp;cat=$3&amp;page=$4 [I]<\/p>\n<p>RewriteRule ^(.*)\/brand-([0-9]+)-c([0-9]+)\\.html(.*)$ $1\/brand\\.php\\?$4&amp;id=$2&amp;cat=$3 [I]<\/p>\n<p>RewriteRule ^(.*)\/brand-([0-9]+)-c([0-9]+)(.*)\\.html $1\/brand\\.php\\?id=$2&amp;cat=$3 [I]<br \/>\nRewriteRule ^(.*)\/brand-([0-9]+)(.*)\\.html $1\/brand\\.php\\?id=$2 [I]<br \/>\nRewriteRule ^(.*)\/tag-(.*)\\.html $1\/search\\.php\\?keywords=$2 [I]<br \/>\nRewriteRule ^(.*)\/snatch-([0-9]+)\\.html$ $1\/snatch\\.php\\?id=$2 [I]<br \/>\nRewriteRule ^(.*)\/group_buy-([0-9]+)\\.html$ $1\/group_buy\\.php\\?act=view&amp;id=$2 [I]<br \/>\nRewriteRule ^(.*)\/auction-([0-9]+)\\.html$ $1\/auction\\.php\\?act=view&amp;id=$2 [I]<br \/>\nRewriteRule ^(.*)\/exchange-id([0-9]+)(.*)\\.html$ $1\/exchange\\.php\\?id=$2&amp;act=view [I]<br \/>\nRewriteRule ^(.*)\/exchange-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\\.html$ $1\/exchange\\.php\\?cat_id=$2&amp;integral_min=$3&amp;integral_max=$4&amp;page=$5&amp;sort=$6&amp;order=$7 [I]<br \/>\nRewriteRule ^(.*)\/exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\\.html$ $1\/exchange\\.php\\?cat_id=$2&amp;page=$3&amp;sort=$4&amp;order=$5 [I]<br \/>\nRewriteRule ^(.*)\/exchange-([0-9]+)-([0-9]+)(.*)\\.html$ $1\/exchange\\.php\\?cat_id=$2&amp;page=$3 [I]<br \/>\nRewriteRule ^(.*)\/exchange-([0-9]+)(.*)\\.html$ $1\/exchange\\.php\\?cat_id=$2 [I]<\/p><\/blockquote>\n<p>2\u3001Nginx\u4e0b<\/p>\n<blockquote><p>location \/ {<br \/>\nrewrite \"^\/index\\.html\" \/index.php last;<br \/>\nrewrite \"^\/category$\" \/index.php last;<br \/>\nrewrite \"^\/feed-c([0-9]+)\\.xml$\" \/feed.php?cat=$1 last;<br \/>\nrewrite \"^\/feed-b([0-9]+)\\.xml$\" \/feed.php?brand=$1 last;<br \/>\nrewrite \"^\/feed\\.xml$\" \/feed.php last;<br \/>\nrewrite \"^\/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\\.html$\" \/category.php?id=$1&amp;brand=$2&amp;price_min=$3&amp;price_max=$4&amp;filter_attr=$5&amp;page=$6&amp;sort=$7&amp;order=$8 last;<br \/>\nrewrite \"^\/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\\.html$\" \/category.php?id=$1&amp;brand=$2&amp;price_min=$3&amp;price_max=$4&amp;filter_attr=$5 last;<br \/>\nrewrite \"^\/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\\.html$\" \/category.php?id=$1&amp;brand=$2&amp;page=$3&amp;sort=$4&amp;order=$5 last;<br \/>\nrewrite \"^\/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\\.html$\" \/category.php?id=$1&amp;brand=$2&amp;page=$3 last;<br \/>\nrewrite \"^\/category-([0-9]+)-b([0-9]+)(.*)\\.html$\" \/category.php?id=$1&amp;brand=$2 last;<br \/>\nrewrite \"^\/category-([0-9]+)(.*)\\.html$\" \/category.php?id=$1 last;<br \/>\nrewrite \"^\/goods-([0-9]+)(.*)\\.html\" \/goods.php?id=$1 last;<br \/>\nrewrite \"^\/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\\.html$\" \/article_cat.php?id=$1&amp;page=$2&amp;sort=$3&amp;order=$4 last;<br \/>\nrewrite \"^\/article_cat-([0-9]+)-([0-9]+)(.*)\\.html$\" \/article_cat.php?id=$1&amp;page=$2 last;<br \/>\nrewrite \"^\/article_cat-([0-9]+)(.*)\\.html$\" \/article_cat.php?id=$1 last;<br \/>\nrewrite \"^\/article-([0-9]+)(.*)\\.html$\" \/article.php?id=$1 last;<br \/>\nrewrite \"^\/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\\.html\" \/brand.php?id=$1&amp;cat=$2&amp;page=$3&amp;sort=$4&amp;order=$5 last;<br \/>\nrewrite \"^\/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\\.html\" \/brand.php?id=$1&amp;cat=$2&amp;page=$3 last;<br \/>\nrewrite \"^\/brand-([0-9]+)-c([0-9]+)(.*)\\.html\" \/brand.php?id=$1&amp;cat=$2 last;<br \/>\nrewrite \"^\/brand-([0-9]+)(.*)\\.html\" \/brand.php?id=$1 last;<br \/>\nrewrite \"^\/tag-(.*)\\.html\" \/search.php?keywords=$1 last;<br \/>\nrewrite \"^\/snatch-([0-9]+)\\.html$\" \/snatch.php?id=$1 last;<br \/>\nrewrite \"^\/group_buy-([0-9]+)\\.html$\" \/group_buy.php?act=view&amp;id=$1 last;<br \/>\nrewrite \"^\/auction-([0-9]+)\\.html$\" \/auction.php?act=view&amp;id=$1 last;<br \/>\nrewrite \"^\/exchange-id([0-9]+)(.*)\\.html$\" \/exchange.php?id=$1&amp;act=view last;<br \/>\nrewrite \"^\/exchange-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\\.html$\" \/exchange.php?cat_id=$1&amp;integral_min=$2&amp;integral_max=$3&amp;page=$4&amp;sort=$5&amp;order=$6 last;<br \/>\nrewrite \"^\/exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\\.html$\" \/exchange.php?cat_id=$1&amp;page=$2&amp;sort=$3&amp;order=$4 last;<br \/>\nrewrite \"^\/exchange-([0-9]+)-([0-9]+)(.*)\\.html$\" \/exchange.php?cat_id=$1&amp;page=$2 last;<br \/>\nrewrite \"^\/exchange-([0-9]+)(.*)\\.html$\" \/exchange.php?cat_id=$1 last;<br \/>\n}<\/p><\/blockquote>\n<p>\u8bbe\u7f6e\u65b9\u6cd5\u4e0d\u8bf4\u4e86\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001IIS\u4e0b\u3002 [ISAPI_Rewrite] # \u4e3a\u4e86\u786e\u4fdd\u91cd\u5199\u89c4\u5219\u4e0d\u5f71\u54cd\u670d\u52a1\u5668\u4e0a\u7684\u5176\u4ed6\u7ad9\u70b9 # \u8bf7\u5c06\u4e0b\u9762\u7684\u8bed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.nywzjs.com\/index.php?rest_route=\/wp\/v2\/posts\/523"}],"collection":[{"href":"http:\/\/www.nywzjs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.nywzjs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.nywzjs.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.nywzjs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=523"}],"version-history":[{"count":0,"href":"http:\/\/www.nywzjs.com\/index.php?rest_route=\/wp\/v2\/posts\/523\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.nywzjs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.nywzjs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=523"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.nywzjs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}