[SGVLUG] Proper handling of 301 redirects
Braddock
braddock at braddock.com
Sat Mar 30 21:25:01 PDT 2013
I have a need for HTTP redirects.
A 301 redirect includes a "Location:" HTTP header with the new URL - as
far as I can tell it is specified that this must be a fully qualified
URL including host name.
My server is not necessarily smart enough to know its full host name -
it may be accessed via a NAT firewall forward, be multi-homed, it may
just be mis-configured, think it is "localhost", be a reverse proxy,
etc. At any rate, this seems to be a point of woe I keep running into.
Is there a better way to re-direct where I can use relative URL paths
without having to worry about the hostname?
-braddock
More information about the SGVLUG
mailing list