Welcome! Log In Create A New Profile

Advanced

Problem re-writing using query strings

August 19, 2010 10:40AM
Hi,

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?
Subject Author Posted

Problem re-writing using query strings

evms August 19, 2010 10:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 59
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