Welcome! Log In Create A New Profile

Advanced

My first rewrite QUERY_STRING

yaz
May 22, 2011 12:35AM
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
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: 78
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