Hi. I really hope that I am on the right list now...I am new to Apache and I ran into a problem which I haven't found a solution for yet. My server is Apache 1.3.33 on Mac OS X (the bundled version). I am looking for a way to configure a .htaccess file the following way:
1) in a certain path of my webserver, all 404 errors should be grabbed and forwarded to a PHP script
2) I don't want Apache to send any headers before the PHP script3) For your information only: The request is checked by the script and the script will output a 404 header under some circumstances.
The most important part for me is the second one. For now my .htaccess file only contains the following:
ErrorDocument 404 /link_to_PHP_script.phpObviously, this does not prevent Apache from sending a header with a 404 message. I saw in the Apache manual a module called ErrorHeader, but I am not quite sure how to use this. When I extend the .htaccess file with, e.g. ErrorHeader unset 404, my server gives my an internal configuration error. And then, if I would unset a 404 header, would the other part ("ErrorDocument 404 ...") still trigger the PHP script?
Google was not my friend this time, I would like to add. Any help with this would be greatly appreciated. Regards, Frank - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NIKE HYDRAULICS AB Frank Arensmeier Marknadssupport / Webmaster tel 016 - 16 82 34 fax 016 - 13 93 16 frank.arensmeier@xxxxxxxxxxxxxxxxx www.nikehydraulics.se - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx