2014-11-22 68 views

回答

5
location/{ 
    if ($arg_device = desktop) { 
     return 301 $uri; 
    } 
} 
+0

它工作正常!你能否向我解释你做了什么?对于每个GET参数,我有一个$ arg_name变量? – fede91it 2014-11-23 11:33:28

+1

@ fede91it阅读[官方文档](http://nginx.org/en/docs/varindex.html)。 – 2014-11-23 14:07:59