Home  >  Article  >  Backend Development  >  求一条简单伪静态Nginx的Rewrite解决办法

求一条简单伪静态Nginx的Rewrite解决办法

WBOY
WBOYOriginal
2016-06-13 13:33:30834browse

求一条简单伪静态Nginx的Rewrite

http://www.a.com/a.php?id=2 id后面数字是变量 

我需要重写为 
http://s.a.com/a.php?id=2

访问http://www.a.com/a.php?id=2 是读http://s.a.com/a.php?id=2
不是跳转哦

我在www.a.com 
里面写
rewrite ^/a.php?id=(.*) http://s.a.com/a.php?id=$1 last;

跳转了
怎么样让他不跳转 谢谢了

------解决方案--------------------
好象不行
------解决方案--------------------
明确的告诉你。不行。除非做代理

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn