0
我试图创建一个nginx的重写,我似乎无法获得工作非常正确...nginx的先进重写
我想要做的事:
改写: bleh.com/productPage/productname/?action=yes&id=12
到: bleh.com/productPage/index.php?product=productname&action=yes&id=12
到目前为止,我已经得到最接近的是:
location/{
rewrite ^/productPage/(.*)/(.*)$ /productPage/index.php?$1 last;
}
location ~ \.php$ {
fastcgi_index ... (and the rest of the working fastcgi config)
但是我也只是在打404的..
任何帮助,将不胜感激。
曾为连接到rewriten网址... 谢谢! – user2208647 2013-03-25 20:11:11