Problem re-writing using query strings


I’m basically trying to do this:

rewrite /x.php?a=1 to /x.php?b=2.

So, I have

location /x.php {
set $args ‘b=2’;
rewrite ^ /x.php

This produces a loop.

How can I basically do this? Re-write from same URL to same URL with
different query strings?

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs