[SGVLUG] Proper handling of 301 redirects
Joshua Haglund
jhaglund at gmail.com
Sun Mar 31 00:47:10 PDT 2013
The other thing i'm thinking is that every http request has a host name, a
server should be able to use that if it doesn't know its own name.
On Sun, Mar 31, 2013 at 12:45 AM, Joshua Haglund <jhaglund at gmail.com> wrote:
> 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/0b6219ac/attachment.html>
More information about the SGVLUG
mailing list