Finally figured out that all the info about what was being requested was being blocked because the ErrorDocument statement in the .htaccess file was fully qualified including the domain name. I have now changed it to just specify the notfound filename after a slash and $SERVER["REQUESTURI"] now contains the page that was requested that wasn't found.

Okay, I tried that and there's no redirect header and all the page references that do exist are to the not found page.

It worked fine for me but I did have to de-activate my personalised .htaccess file.

Did you:1. make the changes to your Apache http.conf file?2. after the changes stop and restart your LOCALHOST server?3. try the REQUEST_URI instead of REQUEST_URL server variable?4. check for an alernative server variable in the print_r($_SERVER) list?

If all the above checks are OK then I think you will need a .htacces expert.