FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » buffering to allow headers in code?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: buffering to allow headers in code? [message #170183 is a reply to message #170180] Sun, 17 October 2010 04:52 Go to previous messageGo to previous message
Hamish Campbell is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Mesothelioma
Next Topic: Good code or bad code?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 07:26:53 GMT 2024

Total time taken to generate the page: 0.04212 seconds