in reply to Redirection Failure from SHTML
header(-location => 'http://foobar.com/');
Note that the HTTP standard does not have a timing feature; if you send the redirect the browser will go there right away.
If you use it from within an SSI, be sure that it's executed before anything else in the file, as mod_include will send default headers as soon as it encounters some data to send. (I think there may be a way to suppress this behavior, however. Check the mod_include docs.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Redirection Failure from SHTML
by Anonymous Monk on Feb 12, 2005 at 04:02 UTC | |
|
Re^2: Redirection Failure from SHTML
by Aristotle (Chancellor) on Feb 19, 2005 at 03:24 UTC |