当前位置:论坛首页 > Linux面板 > 求助

添加的伪静态规则为什么不可以?

发表在 Linux面板2017-4-1 10:30 [复制链接] 1 1985

我的伪静态规则是这样的,程序是蚂蚁分类信息管理系统mymps
以下是官方给的伪静态规则
  1. rewrite ^/space/(.+)\/$ /space.php?user=$1    last;
  2. rewrite ^/store-([0-9]+)\/$ /store.php?uid=$1    last;
  3. rewrite ^/store-([0-9]+)\/([^\/]+).html$ /store.php?uid=$1&Uid=$2    last;
  4. if (!-d $request_filename) { rewrite ^/(.+)/$ /category.php?Catid=$1  last; }
  5. rewrite ^/([^\/]+)/([0-9]+)\.html$ /information.php?id=$2  last;
  6. rewrite ^/news\.html$ /news.php    last;
  7. rewrite ^/news-id-([0-9]+)\.html$ /news.php?id=$1    last;
  8. rewrite ^/news-catid-([0-9]+)\.html$ /news.php?catid=$1    last;
  9. rewrite ^/news-catid-([0-9]+)-page-([0-9]+)\.html$ /news.php?catid=$1&page=$2    last;
  10. rewrite ^/corporation\.html$ /corporation.php    last;
  11. rewrite ^/corporation-([^\/]+)\.html$ /corporation.php?Catid=$1    last;
  12. rewrite ^/goods\.html$ /goods.php    last;
  13. rewrite ^/goods-id-([0-9]+)\.html$ /goods.php?id=$1    last;
  14. rewrite ^/goods-([^\/]+)\.html$ /goods.php?Catid=$1    last;
  15. rewrite ^/sitemap\.html$ /about.php?part=sitemap    last;
  16. rewrite ^/aboutus\.html$ /about.php?part=aboutus    last;
  17. rewrite ^/aboutus-id-([0-9]+)\.html$ /about.php?part=aboutus&id=$1    last;
  18. rewrite ^/announce\.html$ /about.php?part=announce&id=$1    last;
  19. rewrite ^/faq\.html$ /about.php?part=faq    last;
  20. rewrite ^/faq-id-([0-9]+)\.html$ /about.php?part=faq&id=$1    last;
  21. rewrite ^/friendlink\.html$ /about.php?part=friendlink    last;
复制代码


使用道具 举报 只看该作者 回复
发表于 2017-4-22 02:24:16 | 显示全部楼层
无人区
使用道具 举报 回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表