404 Pages


#1

How can I display the name of the requested page on a PHP 404 page?

It seems to me that Dreamhost treats these kind of things differently to other servers. Has anyone got a 404 that displays the entered URL and hosted on Dreamhost?

I would love to see the code.

Many thanks.


#2

The requested page is accessible to PHP in $_SERVER[‘REQUEST_URI’].


If you want useful replies, ask smart questions.


#3

Thank you very much. I was using a different version that didn’t work!