資源描述:
《ECShopNginx的偽靜態(tài)(Rewrite)規(guī)則.doc》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫(kù)。
1、ECShopNginx的偽靜態(tài)(Rewrite)規(guī)則ECSHOP模板堂(ecmoban.com)ECShop是一款開(kāi)源免費(fèi)的網(wǎng)上商店系統(tǒng)。由專業(yè)的開(kāi)發(fā)團(tuán)隊(duì)升級(jí)維護(hù),為您提供及時(shí)高效的技術(shù)支持,您還可以根據(jù)自己的商務(wù)特征對(duì)ECShop進(jìn)行定制,增加自己商城的特色功能。把下面代碼存為ecshop.conf,然后在域名配置文件(romangift.com.conf)中嵌入(includeecshop.conf)就行了location/{if(!-e$request_filename){rewrite"^/index.html"/index.phplast;rewrite"^/catego
2、ry$"/index.phplast;rewrite"^/feed-c([0-9]+).xml$"/feed.php?cat=$1last;rewrite"^/feed-b([0-9]+).xml$"/feed.php?brand=$1last;rewrite"^/feed.xml$"/feed.phplast;rewrite"^/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$"/category.php?id=$1&bran
3、d=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8last;rewrite"^/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*).html$"/category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5last;rewrite"^/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]
4、+)(.*).html$"/category.php?id=$1&brand=$2&page=$3&sort=$4&order=$5last;rewrite"^/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*).html$"/category.php?id=$1&brand=$2&page=$3last;rewrite"^/category-([0-9]+)-b([0-9]+)(.*).html$"/category.php?id=$1&brand=$2last;rewrite"^/category-([0-9]+)(.*).html$"/ca
5、tegory.php?id=$1last;rewrite"^/goods-([0-9]+)(.*).html"/goods.php?id=$1last;rewrite"^/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$"/article_cat.php?id=$1&page=$2&sort=$3&order=$4last;rewrite"^/article_cat-([0-9]+)-([0-9]+)(.*).html$"/article_cat.php?id=$1&page=$2last;rewrite"^/ar
6、ticle_cat-([0-9]+)(.*).html$"/article_cat.php?id=$1last;rewrite"^/article-([0-9]+)(.*).html$"/article.php?id=$1last;rewrite"^/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+).html"/brand.php?id=$1&cat=$2&page=$3&sort=$4&order=$5last;rewrite"^/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*).html"/br
7、and.php?id=$1&cat=$2&page=$3last;rewrite"^/brand-([0-9]+)-c([0-9]+)(.*).html"/brand.php?id=$1&cat=$2last;rewrite"^/brand-([0-9]+)(.*).html"/brand.php?id=$1last;rewrite"^/tag-(.*).html"/search.php?keywords=$1last;rewrite"^/snatc