I have an active Midgard page that, given an URL
http://some.site.com/activepage/abc.def
will pull up article "def" in topic "abc".
If the article doesn't exist I want to send a 404 header to the browser,
but in such a case, header("Status: HTTP/1.0 404 Not Found") doesn't work.
Is it possible to do this? Seems to me it's probably not, as
Apache/Midgard has already found the proper "page" and served it up. Of
course, if the page isn't set as active, a 404 will be sent if abc.def
doesn't exist, but my code doesn't work either (it checks argv[0] to
get the "abc.def" and parses it to determine the topic and article names.
I may just be stuck setting up a page that says "this article doesn't
exist", but I'd like to send a 404 instead so that search engines
spidering the site, or program that generate web statistics, don't record
pages as valid pages when they don't actually exist (more of an issue with
web statistics programs than search engines, but since the largest search
engine - Google - ranks pages based on links to those pages, and people
could conceivably put incorrect links on their pages... Am I worrying too
much about this?)
--
Steve Sobol, CTO JustThe.net LLC, Mentor On The Lake, OH
http://JustTheNetLLC.com/ 888.480.4NET (4638)
A practicing member of the Geek Orthodox religion!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]