homepage Welcome to WebmasterWorld Guest from 54.166.128.254
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
$_SERVER['REQUEST_URI'] problem
Naty

5+ Year Member



 
Msg#: 9866 posted 4:16 pm on Aug 26, 2005 (gmt 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]

 

jatar_k

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



 
Msg#: 9866 posted 5:15 pm on Aug 26, 2005 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved