issue with htaccess and getenv('REQUEST_URI')-please help



If I add the following line:
ErrorDocument 404 /404.php
into my .htaccess file, it screws up the value returned by:
getenv('REQUEST_URI')

getenv('REQUEST_URI') returns scripts.gif instead of the actual
filename such as index.php

Anyone have any idea why this might be happening???
.



Relevant Pages

  • Re: issue with htaccess and getenv(REQUEST_URI)-please help
    ... into my .htaccess file, it screws up the value returned by: ... filename such as index.php ... Everything is fine when I don't have ErrorDocument 404 /404.php in the ...
    (alt.php)
  • Re: issue with htaccess and getenv(REQUEST_URI)-please help
    ... into my .htaccess file, it screws up the value returned by: ... filename such as index.php ... Everything is fine when I don't have ErrorDocument 404 /404.php in the ...
    (alt.php)
  • Rewrite rule security question
    ... I have a script that generates the htaccess file and I ... session for generating and setting session cookie. ... ErrorDocument 403 /index.php?error403 ... Is this a secure way of doing this? ...
    (Security-Basics)
  • Re: FCGI app reloading on every request
    ... Tried putting this in the .htaccess file: ... ErrorDocument 403 "File type not supported." ... It's an Apache configuration problem. ...
    (comp.lang.python)
  • Re: returning a true 404
    ... > My .htaccess file reads: ... > ErrorDocument 400 /404.php ... As long the header() statement is the first thing in your script. ...
    (comp.lang.php)