Help with redirect from old to new URL

Francis Daly francis at
Mon Sep 10 00:57:38 UTC 2012

On Sun, Sep 09, 2012 at 01:50:46PM -0400, kfawcett wrote:

Hi there,

> It's almost working, but once it runs I end up with this:
>, instead of

What's the output of

  curl -i 

on the starting url?

If it doesn't have the correct /property/ url, then add the two lines


immediately after the header() lines, and test again using curl. See
is the problem in "old" or in "new", and debug accordingly. (Maybe your
fastcgi server doesn't provide variables in the $_SERVER array.)

Note that the example was described as "incomplete", partly because
the Location: header should have the full http://host/url. You can pick
appropriate variables and include them in the header() line.

Francis Daly        francis at

More information about the nginx mailing list