nginx 伪静态化rewrite规则
2018-10-12 13:50
816 查看
location / {
###以下为PHPCMS 伪静态化rewrite规则
rewrite ^(.*)show-([0-9]+)-([0-9]+)\.html$ $1/show.php?itemid=$2&page=$3;
rewrite ^(.*)list-([0-9]+)-([0-9]+)\.html$ $1/list.php?catid=$2&page=$3;
rewrite ^(.*)show-([0-9]+)\.html$ $1/show.php?specialid=$2;
####以下为PHPWind 伪静态化rewrite规则
rewrite ^(.*)-htm-(.*)$ $1.php?$2 last;
rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2 last;
}
本文出自 “linux进阶屋” 博客
您可能感兴趣的文章:
相关文章推荐
- nginx配置location总结及rewrite规则写法
- nginx配置location总结及rewrite规则写法
- Nginx 设置rewrite规则是遇到的一个{}大括号引发的报错问题
- Nginx配置PHP的Yii与CakePHP框架的rewrite规则示例
- 转:Nginx 配置 location 总结及 rewrite 规则写法
- rewrite规则中参数多于9个的处理方式 apache nginx
- Nginx全局变量详解,及Rewrite规则详解
- nginx配置location总结及rewrite规则写法
- nginx配置location总结及rewrite规则写法
- Nginx与Apache的Rewrite规则的区别
- Nginx与Apache的Rewrite规则的区别
- nginx的url重写[rewrite规则和参考]
- textpattern 在 nginx 上的 rewrite 规则
- nginx中rewrite配置规则
- nginx下面CodeIgniter rewrite规则
- nginx配置location总结及rewrite规则写法
- Nginx与Apache的Rewrite规则的区别
- nginx-rewrite规则案例
- nginx 和 apache rewrite 规则的小错误
- 利用伪静态化Rewrite规则httpd.ini文件实现域名绑定子目录功能