Re: buffering to allow headers in code? [message #170183 is a reply to message #170180] |
Sun, 17 October 2010 04:52 |
Hamish Campbell
Messages: 15 Registered: September 2010
Karma:
|
Junior Member |
|
|
On Oct 17, 5:11 pm, MikeB <mpbr...@gmail.com> wrote:
> ... This is all fine and dandy if I want to redirect to
> the root page for a website, but what if I want to redirect to something
> other than the index.php (or index.html) page that sits at the top of
> the website? Or are you saying that all redirect must always redirect
> to the top page of a website?
A Location header should provide an absolute URI - and that can
include specific resources (e.g. http://www.example.com/page-1.html).
Michael's objection to using index.php in the URI is purely stylistic.
Not sure what Pointy Ears was going on about not needing the header
function.
So, to answer your question: no it does not have to point to the root
page - just any *absolute* URI.
Regards
Hamish
|
|
|