用Nginx的朋友可以参考,加到nginx.conf相应主机server段配置中即可!
复制内容到剪贴板
代码:
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;
详细解决方案
用Nginx的友人可以参考
热度:117 发布时间:2012-10-31 14:37:31.0
相关解决方案
- 刚配置了 centos+nginx+php 但DEDE的验证码就是无法显示解决方案
- 刚刚配置了 centos+nginx+php 但DEDE的验证码就是无法显示
- nginx 502 Bad Gateway 异常解决方法
- nginx + php 执行过程中出现404该如何解决
- nginx +php 环境筹建之php安装
- nginx 配备php环境
- windows nginx +php 配备
- MYSQL interactive_timeout跟wait_timeout、NGINX keepalive_timeout
- linux+nginx 应用include无法包含文件?
- nginx,php不能上传大图有关问题(413)
- linux 环境上 nginx 环境搭建
- Nginx 兑现双机热备(接口)
- Nginx 实现双机热备(接口)解决办法
- nginx php fastcgi Connection reset by peer的原因及解决方法
- NGINX 多域名日记切割备份脚本
- nginx 日记每日轮询脚本
- nginx upstream 几种配备分类 此文转载
- nginx gzip 静态资料压缩
- Nginx反向署理不跳转(nginx/java/tomcat/jsp)
- Nginx+iptables障蔽
- (转载)web服务器比较Apache Nginx lighttpd HAProx Litespeed 缓冲原懂得析fastcgi性能
- nginx 配置.json文件直接访问,不上载
- nginx+websphere sendRedirect 端口异常
- linux 环境下 nginx 环境搭建,该怎么处理
- nginx 加加了图片缓存后,打开页面,图片显示不出来
- nginx +tomcat+memcached集群,写session不生效解决方法
- 413 Request Entity Too Large nginx/0.7.65上传文件大小受限制,求好手指导!
- nginx 与 tomcat 集群 一二事 (零)
- thinkphp nginx php-fpm url rewrite 导致 404 异常
- 求助:nginx+php中文总是乱码