Welcome to WebmasterWorld Guest from 54.146.201.80

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

$_SERVER['REQUEST_URI'] problem

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

Junior Member

10+ Year Member

joined:June 6, 2005
posts:71
votes: 0


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]

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

Administrator

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
posts:15755
votes: 0


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