mathius1
06-18-2004, 10:10 PM
I have created a 404 error page using PHP and .htaccess. The page comes up like it is supposed to, but the variable $_SERVER['REQUEST_URI'] outputs the 404 error page instead of the page that was called first. The code is:
Page name: <<?php echo htmlentities( $_SERVER['REQUEST_URI'] ); ?>>
ex. If I was going to the page http://mysite.com/aboutUs.htm and the page does not exist the 404 Error page will come up and the request uri variable outputs http://mysite.com/404error.php How do I get it to display the correct uri?
Thanks
Mathius
Page name: <<?php echo htmlentities( $_SERVER['REQUEST_URI'] ); ?>>
ex. If I was going to the page http://mysite.com/aboutUs.htm and the page does not exist the 404 Error page will come up and the request uri variable outputs http://mysite.com/404error.php How do I get it to display the correct uri?
Thanks
Mathius