Welcome! Log In Create A New Profile

Advanced

Re: My first rewrite QUERY_STRING

May 22, 2011 01:26AM
On Sun, May 22, 2011 at 12:35:07AM -0400, yaz wrote:
> 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

if ($arg_ss) {
rewrite ^ $uri? permanent;;
}

if ($arg_scvds) {
rewrite ^ $uri? permanent;;
}


--
Igor Sysoev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

My first rewrite QUERY_STRING

yaz May 22, 2011 12:35AM

Re: My first rewrite QUERY_STRING

Igor Sysoev May 22, 2011 01:26AM

Re: My first rewrite QUERY_STRING

yaz May 22, 2011 01:57AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 110
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready