Cheap Web Space, Domain Name:
Web Space With E-Mail, PHP/MySQL.

How do I create my own 404 error page?

Question: 

Searching …

 

Unfortunately nothing found on "".

Premium support for Bitpalace web hosting customers only!

 from Saint Vincent and the Grenadines: +49 30 32 70 18 92, Fax (in Germany) +49 30 32 70 18 91

service@bitpalast.net 

Skype: bitpalast

One moment please … your browser is loading the page.

 

 

Symptom

Whenever the server generates a 404 "Not Found" error, you want to display your own page or redirect calls to an existing page on your website.

 

Solution

Insert a line into your .htaccess file:

ErrorDocument 404 /

for example

ErrorDocument 404 /my-own-error-page.html

Now, every time a page or image is invoked that is missing from the server, the web server will instead load the "my-own-error-page.html" page and send it to the browser. The error page can be designed arbitrarily. You can also specify a .php file there or simply send every call to the homepage /index.html or /index.php. Keep in mind that this page must be present otherwise the server will end up in an infinite loop (which automatically quits after n attempts without output).

 

Overview of frequently asked questions 

 

 

 


 

  from Saint Vincent and the Grenadines: +49 30 32 70 18 92 •  GmbH, Sensburger Allee 27, D-14055 Berlin (Germany)
Your purchase is tax-free, because you order from a non-EU country. © 2024  GmbH. All rights reserved. and the logo are registered trademarks of GmbH. For photo credits see imprint.

Imprint Privacy policy Sitemap