On 11 Jul 2005, at 23:43, Brad Perkins wrote:
Do you want it to return a 404 response code, or a custom page saying
the request couldn't be resolved?
If you want the response code to be 404, the only thing I can think
of, and I'm not sure if this will even work, is to pre-process the
request before Active4D actually gets it, determine if the request is
coming from the bot (yours or any?) in which case you do a lookup and
determine if the requested page could be served. If it can't then
modify the request to ask for a page that you know doesn't exist
before it is handed to Active4D. That way A4D should respond with a
404.
What happens if you try my original suggestion d redirect to a page
that doesn't exist?
I'm using WebSTAR for all but the html, so I can allow Active4D to
check if a page (or rather, the record necessary to create a page)
exists, and if not then redirect to a non-existent file such as
error.pdf or error.txt.
This works OK and WebSTAR returns a 404 code when I call up a
non-existent page, but for some reason my logs show that the
problematic visiting robot is receiving 303 codes for such pages.
This is OK for now, so I can safely go and lie in a darkened room. I
expect that there must be a better way, though.
Thanks!
David
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/