首页 | 新闻 | 交流 | 问吧 | 文档 | 手册 | 下载 | 博客

變更nginx.conf中的rewrite規則,從20080 server..

作者:  时间: 2010-10-12
   rewrite /store/(\d+)/type/(\d+) /store/$1/$2 permanent;
  rewrite /store/(index/)?list/(id/)?(\d+)(/type/0)?(/p/\d+)? /store/$3/sell$5 permanent;
  rewrite /store/(index/)?list/(id/)?(\d+)/type/1(/p/\d+)? /store/$3/rent$4 permanent;
  rewrite /store/index/(rank|intro)/id/(\d+) /store/$2/$1 permanent;