How to redirect to a query

Francis Daly francis at
Wed Mar 9 00:03:10 MSK 2011

On Tue, Mar 08, 2011 at 09:43:41AM -0500, sjark wrote:

Hi there,

> I Need help with if someone enter it redirect to

   location = / {
       rewrite ^ /site.php?site=1? permanent;

in the right server{} block should do what you ask for.

It might do what you want if the initial request is for something like

Good luck,

Francis Daly        francis at

More information about the nginx mailing list