404 Pages


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.


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

If you want useful replies, ask smart questions.


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