rewrite ^(.*)list\/([0-9]+)-([0-9]+)\.html$ $1index.php?v=listing&cid=$2&page=$3 last;

rewrite ^(.*)show\/([0-9]+)-([0-9]+)\.html$ $1index.php?v=show&cid=$2&id=$3 last;

//动态改成伪静态-list
function tolist($path_info='http://192.168.0.11/index.php?v=listing&cid=14&page=1')
{
$match = "/^(.*)index.php\?v=listing&cid=([0-9]+)&page=([0-9]+)/";
//$path_info = 'http://192.168.0.11/index.php?v=listing&cid=14&page=1'; if(preg_match($match,$path_info,$arr_path)){ return "$arr_path[1]list/$arr_path[2]-$arr_path[3].html"; }else{
return $path_info;
}
}
//动态改成伪静态-show
function toshow($path_info='http://192.168.0.11/index.php?v=show&cid=10&id=36')
{
$match = "/^(.*)index.php\?v=show&cid=([0-9]+)&id=([0-9]+)/";
//$path_info = 'http://192.168.0.11/index.php?v=listing&cid=14&page=1'; if(preg_match($match,$path_info,$arr_path)){ return "$arr_path[1]show/$arr_path[2]-$arr_path[3].html"; }else{
return $path_info;
}
}

最新文章

  1. javascript 在ie8中报“缺少标识符、字符串或数字“问题再现:
  2. PetaPoco 使用总结(二)
  3. java 线程的让步
  4. C#设计模式(7)——适配器模式(Adapter Pattern)
  5. Aviary 滤镜 教程 照片编辑器
  6. eclipse创建maven模块工程
  7. Oracle计算连续天数,计算连续时间,Oracle连续天数统计
  8. 配置Tomcat JNDI数据源
  9. StringBuilder - new line.
  10. <context:annotation-config/>
  11. Java 第一个程序案HelloWorld例记录
  12. 关于“应用程序无法启动,因为应用程序的并行配置不正确。请参阅应用程序事件日志,或使用命令行sxstrace.exe工具”问题的解决方法
  13. ElGamal密码
  14. 利用ZYNQ SOC快速打开算法验证通路(3)——PS端DMA缓存数据到PS端DDR
  15. nginx的autoindex,目录浏览,配置和美化,美观的xslt_stylesheet
  16. Redux与它的中间件:redux-thunk,redux-actions,redux-promise,redux-saga
  17. 六.HashMap HashTable HashSet区别剖析总结
  18. 正确理解springboot的常用注入方式
  19. Postman 网络调试工具
  20. C# 计算代码运行时间

热门文章

  1. lcd_1602
  2. 面向对象UML中类关系
  3. 添加JSTL 1.2 依赖库
  4. zookeeper(2)-curator
  5. Java之JSP基础语法
  6. in_array 判断的一些见解
  7. Linux中变量#,#,@,0,0,1,2,2,*,$$,$?的含义
  8. Jquery - UI - Dialog(转)
  9. Nohttp框架在Android Studio中的使用
  10. oracle之nomount、mount、open三种状态