ecshop的全站自定义URL的Apache规则,求帮忙转成nginx用的。。谢谢 10
#文章类的要放在前面,要不会跟商品的冲突rewrite"^article-([0-9a-zA-Z_]+)-([0-9]+)-(.+)-([a-zA-Z]+)[\/]*$a...
# 文章类的要放在前面,要不会跟商品的冲突
rewrite "^article-([0-9a-zA-Z_]+)-([0-9]+)-(.+)-([a-zA-Z]+)[\/]*$ article_cat\.php\?defurl=$1&page=$2&sort=$3&order=$4 [QSA,L]
RewriteRule ^article-([0-9a-zA-Z_]+)-([0-9]+)-(.+)[\/]*$ article_cat\.php\?defurl=$1&page=$2&keywords=$3 [QSA,L]
RewriteRule ^article-([0-9a-zA-Z_]+)-([0-9]+)[\/]*$ article_cat\.php\?defurl=$1&page=$2 [QSA,L]
RewriteRule ^article-([0-9a-zA-Z_]+)[\/]*$ article_cat\.php\?defurl=$1 [QSA,L]
RewriteRule ^article-(?:[0-9a-zA-Z_]+)/([0-9]+)(.*)\.html$ article\.php\?id=$1 [QSA,L]
RewriteRule ^brand-([0-9a-zA-Z_]+)(?:-c([0-9]+))?-([0-9]+)-(.+)-([a-zA-Z]+)[\/]*$ brand\.php\?defurl=$1&cat=$2&page=$3&sort=$4&order=$5 [QSA,L]
RewriteRule ^brand-([0-9a-zA-Z_]+)(?:-c([0-9]+))?-([0-9]+)[\/]*$ brand\.php\?defurl=$1&cat=$2&page=$3 [QSA,L]
RewriteRule ^brand-([0-9a-zA-Z_]+)(?:-c([0-9]+))?[\/]*$ brand\.php\?defurl=$1&cat=$2 [QSA,L]
RewriteRule ^brand-([0-9a-zA-Z_]+)[\/]*$ brand\.php\?defurl=$1 [QSA,L]
RewriteRule ^([0-9a-zA-Z_]+)(?:-b([0-9]+))?-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)[\/]*$ category\.php\?defurl=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 [QSA,L] 展开
rewrite "^article-([0-9a-zA-Z_]+)-([0-9]+)-(.+)-([a-zA-Z]+)[\/]*$ article_cat\.php\?defurl=$1&page=$2&sort=$3&order=$4 [QSA,L]
RewriteRule ^article-([0-9a-zA-Z_]+)-([0-9]+)-(.+)[\/]*$ article_cat\.php\?defurl=$1&page=$2&keywords=$3 [QSA,L]
RewriteRule ^article-([0-9a-zA-Z_]+)-([0-9]+)[\/]*$ article_cat\.php\?defurl=$1&page=$2 [QSA,L]
RewriteRule ^article-([0-9a-zA-Z_]+)[\/]*$ article_cat\.php\?defurl=$1 [QSA,L]
RewriteRule ^article-(?:[0-9a-zA-Z_]+)/([0-9]+)(.*)\.html$ article\.php\?id=$1 [QSA,L]
RewriteRule ^brand-([0-9a-zA-Z_]+)(?:-c([0-9]+))?-([0-9]+)-(.+)-([a-zA-Z]+)[\/]*$ brand\.php\?defurl=$1&cat=$2&page=$3&sort=$4&order=$5 [QSA,L]
RewriteRule ^brand-([0-9a-zA-Z_]+)(?:-c([0-9]+))?-([0-9]+)[\/]*$ brand\.php\?defurl=$1&cat=$2&page=$3 [QSA,L]
RewriteRule ^brand-([0-9a-zA-Z_]+)(?:-c([0-9]+))?[\/]*$ brand\.php\?defurl=$1&cat=$2 [QSA,L]
RewriteRule ^brand-([0-9a-zA-Z_]+)[\/]*$ brand\.php\?defurl=$1 [QSA,L]
RewriteRule ^([0-9a-zA-Z_]+)(?:-b([0-9]+))?-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)[\/]*$ category\.php\?defurl=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 [QSA,L] 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏10(财富值+成长值)
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询