当前位置  >   首页  >   资讯  >  正文

蚂蚁分类Mymps5.8单城市版Nginx伪静态规则

2019-09-29    896次浏览

rewrite ^/space/(.+)/$ /space.php?user=$1;
rewrite ^/store-([0-9]+)/$ /store.php?uid=$1;
rewrite ^/store-([0-9]+)/([^/]+).html$ /store.php?uid=$1&Uid=$2;
if (!-d $request_filename){
set $rule_3 1$rule_3;
}
if ($rule_3 = "1"){
rewrite ^/(?!store|space)(.+)/$ /category.php?Catid=$1;
}
rewrite ^/([^/]+)/([0-9]+).html$ /information.php?id=$2;
rewrite ^/news.html$ /news.php;
rewrite ^/news-id-([0-9]+).html$ /news.php?id=$1;
rewrite ^/news-catid-([0-9]+).html$ /news.php?catid=$1;
rewrite ^/news-catid-([0-9]+)-page-([0-9]+).html$ /news.php?catid=$1&page=$2;
rewrite ^/goods.html$ /goods.php;
rewrite ^/goods-id-([0-9]+).html$ /goods.php?id=$1;
rewrite ^/goods-([^/]+).html$ /goods.php?Catid=$1;
rewrite ^/corporation.html$ /corporation.php;
rewrite ^/corporation-([^/]+).html$ /corporation.php?Catid=$1;
rewrite ^/aboutus.html$ /about.php?part=aboutus;
rewrite ^/sitemap.html$ /about.php?part=sitemap;
rewrite ^/aboutus-id-([0-9]+).html$ /about.php?part=aboutus&id=$1;
rewrite ^/announce.html$ /about.php?part=announce&id=$1;
rewrite ^/faq.html$ /about.php?part=faq;
rewrite ^/faq-id-([0-9]+).html$ /about.php?part=faq&id=$1;
rewrite ^/friendlink.html$ /about.php?part=friendlink;

  • 公司:商务信息网
  • 地址:河南省南阳市桐柏县
  • 联系:站长
  • 手机:
  • 微信:
联系我们 一键拨号