Welcome to WebmasterWorld Guest from 107.22.87.205

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

$_SERVER['REQUEST_URI'] problem

     
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]

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

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month