My first rewrite QUERY_STRING

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


Hello 

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 ^(.*)$ http://www.mysite.com/$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: http://forum.nginx.org/read.php?2,199820,199820#msg-199820




More information about the nginx mailing list