[SGVLUG] Proper handling of 301 redirects
Joshua Haglund
jhaglund at gmail.com
Sun Mar 31 00:45:45 PDT 2013
What http server are you using? With apache, I'd think
http://httpd.apache.org/docs/2.4/rewrite/remapping.html
would be where to start.
On Sat, Mar 30, 2013 at 9:25 PM, Braddock <braddock at braddock.com> wrote:
> 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sgvlug.net/pipermail/sgvlug/attachments/20130331/f4c7c3fa/attachment.html>
More information about the SGVLUG
mailing list