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: 181
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready