Alternative to a 404 Error Page

  murgle 19:24 25 Jun 2004


I host my Website with 1&1. Is it possible to have a different 404 error page display instead of the standard 1&1 page.

Many thanks.

  woodbexhill 11:46 26 Jun 2004

Many webhosts allow you to adjust the HTML for your 404 pages through your cpanel software on your webserver. Check that out first, and see if you can change it there.

  woodbexhill 11:47 26 Jun 2004

you could do it the 'manual way' and adjust your .htaccess file and add upload your 404 page to your webspace.

This is dependant on whether you can edit your htaccess

  Pesala 17:01 28 Jun 2004
  murgle 17:23 28 Jun 2004

Thanks for your advice. I think I need to contact 1&1 to see if I can edit my htaccess file.

  Taran 17:53 28 Jun 2004

You create the .htaccess file yourself, or at least I did with my 1&1 account. The .htaccess file overrides default web server settings for the directory it is stored in.

In plain English, if you have an .htaccess file in one folder on your website the contents of that folder will react to the instructions placed in your .htaccess file, even if the web server is set up with different instructions.

I use them for all sorts of things, from controlling error pages to setting specific PHP attributes to parts of a site by overriding the web server default.

If people only knew just how much you could do with a humble .htaccess file they'd be very, very surprised.

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Best Black Friday Deals 2017

Black Friday Deals for Designers & Artists: Adobe, Apple, Corel Painter, Microsoft Surface, Wacom &e…

Best Black Friday Apple Deals 2017

Black Friday 2017 : date, sites participants & bonnes affaires