2013年9月24日

nginx rewrite

摘要: 要解决的问题是:所有http://www.test.com/forum.php 均跳转到http://www.test.com/forum.php?mod=thread其它请求仍然保持原始地址。方法1:原理:配置nginx rewrite来实现操作1:rewrite ^/forum.php$ /forum.php?mod=thread last;操作2:重启nginx现象:能够实现跳转,但对于http://www.test.com/forum.php?gid=10这样的请求,nginx也会匹配并跳转到http://www.test.com/forum.php?mod=thread结论是:rew 阅读全文

posted @ 2013-09-24 15:15 awildfish 阅读(332) 评论(0) 推荐(0) 编辑

导航