Welcome! Log In Create A New Profile

Advanced

Re: Help with redirect from old to new URL

Francis Daly
September 09, 2012 08:58PM
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:
> http://www.mysite.com/property, instead of
> http://www.mysite.com/property/mls-5028725-10425-virginia-pine-lane-alpharetta-ga-30022

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

phpinfo(INFO_VARIABLES);
print("\nold=$old\nnew=$new\n");

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.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Help with redirect from old to new URL

kfawcett September 09, 2012 09:54AM

Re: Help with redirect from old to new URL

Francis Daly September 09, 2012 10:38AM

Re: Help with redirect from old to new URL

kfawcett September 09, 2012 01:50PM

Re: Help with redirect from old to new URL

Francis Daly September 09, 2012 08:58PM

Re: Help with redirect from old to new URL

kfawcett September 09, 2012 10:29PM

Re: Help with redirect from old to new URL

Francis Daly September 10, 2012 07:40AM

Re: Help with redirect from old to new URL

kfawcett September 10, 2012 09:17AM

Re: Help with redirect from old to new URL

Francis Daly September 10, 2012 06:58PM

Re: Help with redirect from old to new URL

António P. P. Almeida September 09, 2012 02:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 172
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready