Errr... that is, in Google. ;)

Bogdan

Bogdan Stancescu wrote:

Typing "Apache custom 404" and clicking on "I feel lucky" would get you to this information:

Apache

Add the following directive to your httpd.conf file (this file should be edited by someone knowledgeable about configuring an Apache Web server) or to an .htaccess file in your root (top-level) Web document directory: ErrorDocument 404 /404.html.

ErrorDocument is a directive that tells Apache that you are specifying a custom error handler, and 404 tells Apache which error you are customizing. Finally, /404.html specifies the location of the Web page to be used as the custom 404 message--in this case a file named 404.html located in the top-level document directory for this site.

Good luck! :)

Bogdan

David T-G wrote:

Hi, all --

I thought I knew the trick for this, but I don't, and I have about an
hour to figure it out.

We're going to be taking down our web server for some unavoidable
maintenance and we want to put up a polite "we're not here" page rather
than just look like we went out of business.  We're going to bring up
httpd but leave all databases etcetc turned off.

How can i make a script, perhaps with an htaccess trick file, which will
take

  example.com/
  example.com/login.php
  example.com/index.php?some&params&etc

and always be found?  The trick I knew depended on looking in a
subdirectory so that I could fake the name, but this has to work from the
root.


TIA & HAND


:-D

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to