# nginx rewrite rule

#Main menu rules.
rewrite ^(.*?)/index.html$ $1/index.php?r=site/index break;
rewrite ^(.*?)/bisai.html$ $1/index.php?r=site/bisaisong break;
rewrite ^(.*?)/yuanchang.html$ $1/index.php?r=site/yuanchang break;
rewrite ^(.*?)/search.html$ $1/index.php?r=site/search break;
rewrite ^(.*?)/starteams.html$ $1/index.php?r=site/starteams break;

#playlist rules.
rewrite ^(.*?)/yclist_([0-9]+).html$ $1/index.php?r=site/playlist&from=ychang&bsid=$2 break;
rewrite ^(.*?)/bslist_([0-9]+).html$ $1/index.php?r=site/playlist&from=bisai&bsid=$2 break;

#mplay rules.
#site/mplayer&boid=86&where=bisai
#site/mplayer&boid=20&where=yuanchang
rewrite ^(.*?)/ycmp_([0-9]+).html$ $1/index.php?r=site/mplayer&where=yuanchang&boid=$2 break;
rewrite ^(.*?)/bsmp_([0-9]+).html$ $1/index.php?r=site/mplayer&where=bisai&boid=$2 break;

#ajaxLoad rules.
rewrite ^(.*?)/ajaxload15BisaiSong$ $1/index.php?r=site/ajaxload15BisaiSong break;
rewrite ^(.*?)/ajaxload15YuancSong$ $1/index.php?r=site/ajaxload15YuancSong break;
rewrite ^(.*?)/ajaxload5jingxuanbisaiSong$ $1/index.php?r=site/ajaxload5jingxuanbisaiSong break;
rewrite ^(.*?)/ajaxload5jingxuanyuancSong$ $1/index.php?r=site/ajaxload5jingxuanyuancSong break;
rewrite ^(.*?)/gn_([0-9]+).html$ $1/index.php?r=site/getNumber&w=$2 break;
rewrite ^(.*?)/getPorderForBisai$ $1/index.php?r=site/getPorderForBisai break;
rewrite ^(.*?)/getPorderForYuanchang$ $1/index.php?r=site/getPorderForYuanchang break;
rewrite ^(.*?)/getPorderForHistorysg$ $1/index.php?r=site/getPorderForHistorysg break;

#Footer navi rules.
rewrite ^(.*?)/about.html$ $1/index.php?r=site/about break;
rewrite ^(.*?)/bisairule.html$ $1/index.php?r=site/bisairule break;
rewrite ^(.*?)/zhiscq.html$ $1/index.php?r=site/zhiscq break;
rewrite ^(.*?)/zhuzuoquan.html$ $1/index.php?r=site/zhuzuoquan break;
rewrite ^(.*?)/laysm.html$ $1/index.php?r=site/laysm break;
rewrite ^(.*?)/servicekuan.html$ $1/index.php?r=site/servicekuan break;
rewrite ^(.*?)/yinssm.html$ $1/index.php?r=site/yinssm break;
rewrite ^(.*?)/webmap.html$ $1/index.php?r=site/webmap break;
rewrite ^(.*?)/zhiscq.html$ $1/index.php?r=site/zhiscq break;
rewrite ^(.*?)/zhaopin.html$ $1/index.php?r=site/zhaopin break;
rewrite ^(.*?)/contact.html$ $1/index.php?r=site/contact break;
rewrite ^(.*?)/ylinks.html$ $1/index.php?r=site/ylinks break;

#login/register rules.
rewrite ^(.*?)/login.html$ $1/index.php?r=mber/index break;
rewrite ^(.*?)/register.html$ $1/index.php?r=mber/register break;

#other rules.
#http://192.168.0.122/songhua_24__1_19be2ecf93019d909a66c082818100d8.html
rewrite ^(.*?)/songhua_([0-9]+)_([0-9]+)_([0-9]+)_([A-Za-z0-9]+).html$ $1/index.php?r=site/giveFlower&id=$2&pid=$3&shuas=$4&sma=$5 break;
rewrite ^(.*?)/shoucuangMuc_([0-9]+)_([a-z]+)_([A-Za-z0-9]+).html$ $1/index.php?r=site/shoucuangmuc&id=$2&lx=$3&sma=$4 break;
rewrite ^(.*?)/blank.html$ $1/index.php?r=site/blank break;
rewrite ^(.*?)/hejis.html$ $1/index.php?r=site/hejis break;
rewrite ^(.*?)/platforms.html$ $1/index.php?r=site/platforms break;

#Mber in rules.
rewrite ^(.*?)/ajaxloadMberinfo_([0-2]+)_([0-9]+)_([A-Za-z0-9]+)$ $1/index.php?r=mber/ajaxloadMberbaseinfo&o=$2&mid=$3&authcode=$4 break;
rewrite ^(.*?)/ajaxloadMberauth_([0-1]+)_([0-9]+)_([A-Za-z0-9]+)$ $1/index.php?r=mber/ajaxloadMberauth&o=$2&mid=$3&authcode=$4 break;

#musicbox in rules.
rewrite ^(.*?)/mbox_(b|y)_([\|0-9]+).html$ $1/index.php?r=site/musicbox&from=$2&lists=$3 break;

#Word information in rules.
rewrite ^(.*?)/detail_([0-9]+).html$ $1/index.php?r=site/detail&ikey=$2 break;

#radio url in rules.
#rewrite ^(.*?)/playradio.html$ $1/index.php?r=site/radio break;

nginx rewrite的更多相关文章

  1. nginx rewrite重写与防盗链配置

    nginx rewrite重写规则与防盗链配置方法 时间:2016-02-04 15:16:58来源:网络 导读:nginx rewrite重写规则与防盗链配置方法,rewrite规则格式中flag标 ...

  2. nginx——rewrite模块

    1.什么是Nginx的Rewrite规则? Rewrite主要的功能就是实现URL的重写,Nginx的Rewrite规则采用PCRE(Perl Compatible Regular Expressio ...

  3. Nginx Rewrite规则初探(转)

    Nginx  rewrite(nginx url地址重写)Rewrite 主要的功能就是实现URL的重写,Nginx的Rewrite规则采用Pcre,perl兼容正则表达式的语法规则匹配,如果需要Ng ...

  4. Nginx Rewrite规则记录

    Rewrite 是一种服务器的重写脉冲技术,它可以使得服务器可以支持 URL 重写,是一种最新流行的服务器技术.它还可以实现限制特定IP访问网站的功能.很多情况下,某个 IP 的访问很容易造成 CPU ...

  5. Nginx rewrite 规则 与 proxy_pass 实现

    Nginx rewrite 规则  与 proxy_pass 实现     -------------------------------------------------------------- ...

  6. Nginx rewrite(重读)

    Nginx Rewrite规则相关指令  Nginx Rewrite规则相关指令有if.rewrite.set.return.break等,其中rewrite是最关键的指令.一个简单的Nginx Re ...

  7. Nginx Rewrite规则详解

    Rewrite规则含义就是某个URL重写成特定的URL,从某种意义上说为了美观或者对搜索引擎友好,提高收录量及排名等. Rewrite规则的最后一项参数为flag标记,支持的flag标记主要有以下几种 ...

  8. Nginx Rewrite详解

    Nginx Rewrite详解 引用链接:http://blog.cafeneko.info/2010/10/nginx_rewrite_note/ 原文如下: 在新主机的迁移过程中,最大的困难就是W ...

  9. nginx rewrite 实现URL跳转

    最近工作中常常要改nginx配置,学习了nginx中rewrite的用法 URL跳转这里说的URL跳转就是用户在访问一个URL时将其跳转到另一个URL上.常见的应用场景是让多个域名跳转到同一个URL上 ...

随机推荐

  1. typeof,GetType

    typeof: 是运算符,获得某一类型的 System.Type 对象. Int32 t = new Int32(); Type t = typeof(int); GetType: 是方法,获取当前实 ...

  2. DIV未知宽度高度垂直水平居中

    使用过一种算是相对来说比较好理解一些的吧算是,代码如下: <style> width:800px; height:400px; margin:0 auto; position:absolu ...

  3. Struts2标签之Checkbox

    <s:checkbox name="permisskey" label="帅哥" value="true" fieldValue=&q ...

  4. 配置appium 1.6.3 for MAC

    p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px "Helvetica Neue"; color: #454545 } 安装 ...

  5. 项目部署到tomcat Root中后导致 WebApplicationContext 初始化两次的解决方法

    上一篇文章刚说项目部署到tomcat的ROOT中,今天就发现一个问题.通过eclipse启动tomcat时候,WebApplicationContext 初始化两次: 现象:   通过eclipse控 ...

  6. 50道 Sql语句题

    Student(S#,Sname,Sage,Ssex) 学生表 Course(C#,Cname,T#) 课程表 SC(S#,C#,score) 成绩表 Teacher(T#,Tname) 教师表   ...

  7. redhat自定义安装必选

    redhat自定义安装必选 1.桌面 ked桌面 x 窗口系统 2.应用程序 编辑器 基于文本的互联网 图形互联网 3.服务器 服务器配置工具 万维网服务器 Windows文件 FTP服务器

  8. Powerdesigner SqlServer转Oracle(转)

    参考文章,原文地址:http://blog.csdn.net/cicada688/article/details/7802881 问题1:sqlserver数据库直接转oracle.字段类型由sql ...

  9. Windows Store App JavaScript 开发:小球运动示例

    通过前面内容的学习,相信读者已经对开发基于JavaScript的Windows应用商店应用有了一定的了解,本小节通过一个小球运动的示例来介绍如何新建一个JavaScript的Windows应用商店项目 ...

  10. jsessionid 导致重定向404的问题

    http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/http/HttpServletResponse.html#encod ...