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

作者: E星期五 分类: 源码 发布时间: 2018-10-24 15:32 ė 6 没有评论

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;

感谢原博

本文出自星期五的博客,转载时请注明出处及相应链接。

本文永久链接: http://exqw.com/archives/846.html

0

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

Ɣ回顶部