|
Posted by wombat on 01/25/07 15:53
In article <op.tmpu5criqnv3q9@misant.kabel.utwente.nl>,
Rik <luiheidsgoeroe@hotmail.com> wrote:
> On Thu, 25 Jan 2007 16:33:17 +0100, wombat <64@k.com> wrote:
> > I'll hafta give those a try and see what happens. As far as the base
> > just being "/", if I remember correctly some time ago I was told that I
> > should be using "http://......".. especially when using "header".
>
> Well, I'd say the only time I use http:// is when I use a
> header('Location:...');, the rest could and should for maintainability
> just be relative to either the domain or the current directoty.
>
> And building a header redirect with the correct host would still be a
> simple:
> header('Location: http://'.$_SERVER['HTTP_HOST'].'/path/to/the/target');
>
> So it'll be automatically correct for all (sub)domains.
Looks like I might be headed in the right direction now. Now all I need
to do is run it into a wall a few times to see what happens, but so far
so good. And a simple fix to.
Thanks. ;)
[Back to original message]
|