用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
相关解决方案
- nginx url路由~该怎么处理
- windows 上 php+nginx 并发下不去,求解决方法
- 刚配置了 centos+nginx+php 但DEDE的验证码就是无法显示解决方案
- windows 下 php+nginx 并发上不去,求解决方法
- 刚刚配置了 centos+nginx+php 但DEDE的验证码就是无法显示
- nginx url路由~解决办法
- [nginx] nginx 域名转发如何设置
- Nginx + Tomcat 服务器集群架构及调优心得小结
- nginx 502 Bad Gateway 异常解决方法
- nginx proxy_cache在windows2008上使用报错
- nginx+tomcat+memcached实现负载均衡,该怎么解决
- 在Centos+nginx+wordpress环境停启动iptables 网站返回502
- Nginx Alias 无法解析PHP的解决方法
- nginx + php 执行过程中出现404该如何解决
- nginx +php 环境筹建之php安装
- nginx 配备php环境
- php nginx 环境搭建 异常
- nginx+php5.3.20上,file_get_contents无法使用
- nginx 署理本地的html
- windows nginx +php 配备
- nginx“虚拟目录”不支持php的解决方法
- ubuntu10.04配备 nginx + php-fpm 模式
- Ubuntu上安装PHP+Nginx
- MYSQL interactive_timeout跟wait_timeout、NGINX keepalive_timeout
- linux+nginx 应用include无法包含文件?
- NGINX+PHP-金山逍遥网CMS公布系统配置
- phpmyadmin 装配 nginx 配置 cookie 配置
- Windows 上 Nginx + PHP5 的安装与配置
- 转:Windows 上 Nginx + PHP5 的安装与配置
- Nginx&&PHP-FPM配置及优化指南(下)