Re: How do I send a 404 HTTP header ?

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 56623
interpreted = N
texte = > A lot of this also relates to which platform/server is being run. > What is it you're trying to achieve? WebDNA 5.1 Apache=20 Linux To explain a bit more - I am trying to set up a Search Engine Safe = system for URLs using WebDNA and mod_rewrite. So far I have = successfully grabbed the requested URL (the bit 'stuff/morestuff' from = 'http://domain/stuff/morestuff') and have passed that on to a WebDNA = template called 'parser.tmpl'. I then split out the string 'stuff/morestuff' using [listwords] and use = the individual parameters to search a content database. If a record is = found an include file is called in, if none is found then I want to = redirect to a custom error page 'error.tmpl'. This redirect with not cause a '404 page not found' error to be sent to = the browser however, so search engines in particular may think that = incorrect URLs are valid. So ... I was hoping that there might be a way using [setmimeheaders] or = something else to send a '404 page not found' message to the requesting = browser from the 'error.tmpl' page. In PHP this is achieved using = something like 'header("HTTP/1.1 404 Not Found");' - I'm just not sure = how to do this correctly using WebDNA. - Tom ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: How do I send a 404 HTTP header ? ( Christer Olsson 2004)
  2. Re: How do I send a 404 HTTP header ? ( "Tom Duke" 2004)
  3. Re: How do I send a 404 HTTP header ? ( Christer Olsson 2004)
  4. Re: How do I send a 404 HTTP header ? ( "Tom Duke" 2004)
  5. Re: How do I send a 404 HTTP header ? ( Mark Derrick 2004)
  6. Re: How do I send a 404 HTTP header ? ( Donovan Brooke 2004)
  7. How do I send a 404 HTTP header ? ( "Tom Duke" 2004)
> A lot of this also relates to which platform/server is being run. > What is it you're trying to achieve? WebDNA 5.1 Apache=20 Linux To explain a bit more - I am trying to set up a Search Engine Safe = system for URLs using WebDNA and mod_rewrite. So far I have = successfully grabbed the requested URL (the bit 'stuff/morestuff' from = 'http://domain/stuff/morestuff') and have passed that on to a WebDNA = template called 'parser.tmpl'. I then split out the string 'stuff/morestuff' using [listwords] and use = the individual parameters to search a content database. If a record is = found an include file is called in, if none is found then I want to = redirect to a custom error page 'error.tmpl'. This redirect with not cause a '404 page not found' error to be sent to = the browser however, so search engines in particular may think that = incorrect URLs are valid. So ... I was hoping that there might be a way using [setmimeheaders] or = something else to send a '404 page not found' message to the requesting = browser from the 'error.tmpl' page. In PHP this is achieved using = something like 'header("HTTP/1.1 404 Not Found");' - I'm just not sure = how to do this correctly using WebDNA. - Tom ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ "Tom Duke"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Double Spacing in Mails from Sendmail (2002) Mac 2.1b2 speed (1997) sendmail what is SIMS? (1999) triggering an update of two frames (1998) A question on sub-categories (1997) [Replace] really replaces? (2000) Summing fields (1997) _ in front of field name (1998) web delivery (1997) [unitshipcost] values do NOT write to orderfile (1998) international time (1997) IIS4b2 and WebCatalog b19 (1997) [math] show=F exists? (1997) Upgrading old WebCat Database Files (1997) WebCat for mass emailings (1997) Another bug to squash (WebCat2b13 Mac .acgi) (1997) Download Question (1997) syntax question, not in online refernce (1997) embedded showif statements (2000) default value from Lookup (was Grant, please help me) (1997)