欢迎来到天天文库
浏览记录
ID:50368531
大小:43.52 KB
页数:2页
时间:2020-03-08
《ECShopNginx的伪静态(Rewrite)规则.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、ECShopNginx的伪静态(Rewrite)规则ECSHOP模板堂(ecmoban.com)ECShop是一款开源免费的网上商店系统。由专业的开发团队升级维护,为您提供及时高效的技术支持,您还可以根据自己的商务特征对ECShop进行定制,增加自己商城的特色功能。把下面代码存为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
此文档下载收益归作者所有