Forum Moderators: coopster

Message Too Old, No Replies

$_SERVER['REQUEST_URI'] problem

         

Naty

4:16 pm on Aug 26, 2005 (gmt 0)

10+ Year Member



Hi
I have create a custom error 404 file (404.php)

I have test the script in 404.php with

echo $_SERVER["REQUEST_URI"];

When I test by request a file that not exist in my site like http://www.example.com/abc.html

Why the result is ==> /404.php?

I think it should be http://www.example.com/abc.html

[edited by: jatar_k at 5:14 pm (utc) on Aug. 26, 2005]
[edit reason] used example [/edit]

jatar_k

5:15 pm on Aug 26, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



>> Why the result is ==> /404.php?

that should be the result. If a page is not found and you have 404.php setup as your custom 404 page then that is the page the server will serve up.