多多淘宝客nginx伪静态规则

Wordpress zqcheng 295℃ 0评论

rewrite /index.html$ /index.php last;
rewrite /sitemap.html$ /sitemap.php last;
rewrite /malllist.html$ /malllist.php last;
rewrite /shoplist.html$ /shoplist.php last;
rewrite /article.html$ /article.php last;
rewrite /user/center.html$ /user/center.php last;
rewrite /mall-(.*)-(.*)-(.*).html$ /mall.php?id=$1&act=$2&page=$3 last;
rewrite /mall-(.*)-(.*).html$ /mall.php?id=$1&act=$2 last;
rewrite /mall-(.*).html$ /mall.php?id=$1 last;
rewrite /view-(.*)-(.*).html$ /view.php?iid=$1&page=$2 last;
rewrite /view-(.*).html$ /view.php?iid=$1 last;
rewrite /malllist-(.*)-(.*)-(.*).html$ /malllist.php?catid=$1&mall=$2&page=$3 last;
rewrite /article_list-(.*)-(.*).html$ /article_list.php?cid=$1&page=$2 last;
rewrite /article_list-(.*).html$ /article_list.php?cid=$1 last;
rewrite /read-(.*).html$ /read.php?id=$1 last;
rewrite /shoplist-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*).html$ /shoplist.php?cid=$1&keyword=$2&start_level=$3&end_level=$4&area=$5&px=$6&cpr=$7&type=$8&page=$9 last;
rewrite /list-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*).html$ /list.php?cid=$1&start_price=$2&end_price=$3&sort=$4&area=$5&guarantee=$6&list=$7&q=$8&page=$9 last;
rewrite /shop-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*).html$ /shop.php?nick=$1&start_price=$2&end_price=$3&sort=$4&area=$5&guarantee=$6&list=$7&q=$8&page=$9 last;
rewrite /shoplist-(.*).html$ /shoplist.php?cid=$1 last;
rewrite /shop-(.*).html$ /shop.php?nick=$1 last;
rewrite /list-(.*).html$ /list.php?cid=$1 last;
rewrite /list.html$ /list.php last;
rewrite /huangou-(.*).html$ /huangou.php?id=$1 last;
rewrite /huan-(.*)-(.*).html$ /huan.php?keyword=$1&page=$2 last;
rewrite /huan.html$ /huan.php last;
rewrite /coupons-(.*)-(.*).html$ /coupons.php?cid=$1&page=$2 last;
rewrite /coupons.html$ /coupons.php last;
rewrite /cuxiao-(.*).html$ /cuxiao.php?id=$1 last;

转载请注明:零度工作室 » 多多淘宝客nginx伪静态规则

喜欢 (0)or分享 (0)
发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
皖ICP备10205284号