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



- Dazed <user@xxxxxxxx> wrotc:

- Dazed <user@xxxxxxxx> wrotc:

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???

The value being returned is the name of the last image displayed
index.php instead of the name of index.php.
Everything is fine when I don't have ErrorDocument 404 /404.php in the
.htaccess file

Figured it out!!!
.



Relevant Pages

  • issue with htaccess and getenv(REQUEST_URI)-please help
    ... ErrorDocument 404 /404.php ... into my .htaccess file, it screws up the value returned by: ... filename such as index.php ...
    (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: 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: 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)

Loading