I'm working on creating some custom error pages for our servers which run on IIS 5. The tutorial I checked out was geared toward Apache servers, specifically with a call to the variable $REDIRECT_URL which, as explained - is set by Apache - therefor, in IIS, the variable is empty.
What I am looking for is a solution that has the same effect of $REDIRECT_URL - only for PHP+IIS setups.
Here's the code I am using:
<?php
header ("HTTP/1.0: 200 OK\n"); //This is for IE6 - it ensures that IE's default 404 page is not incurred.
print("
The file you requested ($REDIRECT_URL) does not exist on this server.
Please look for the page you wanted at <A HREF=\"/\">the front page</A>.
");
?>