My first rewrite QUERY_STRING

yaz nginx-forum at
Sun May 22 08:35:07 MSD 2011


here is a piece of htaccess i am stuck converting into nginx rewrite
conventions : 

RewriteCond %{QUERY_STRING} ^sms_ss= [OR]
RewriteCond %{QUERY_STRING} ^scvds=
RewriteRule ^(.*)$$1? [R=301,L]

I am trying something like 

 if ($args ~ "sms_ss= (.*)") {
        rewrite ^ /(.*)=$args? break;

Not working 

Any advice would be appreciated thanks

Posted at Nginx Forum:,199820,199820#msg-199820

More information about the nginx mailing list