Home > 404 Error > Apache Custom 404 Error Page

Apache Custom 404 Error Page


To test if everything is in working order with your .htaccess file and your new custom 404 error page, use your web browser to navigate to a page on your website An even better way could be using Include in apache2.conf and collect overridden messages in one separate file. My directory structure is as follows: error\404page.html index.php .htaccess The content of my .htaccess file is: ErrorDocument 404 error\404page.html This produces the following result: However this is not working - is Have questions? navigate here

Learn more about servers and how to get your web pages found, crawled and indexed with these technical SEO tips. In this guide, we'll demonstrate how to configure Apache to use custom error pages on Ubuntu 14.04. Community Tutorials Questions Projects Tags Newsletter RSS Distros & One-Click Apps Terms, Privacy, & Copyright Security Report a Bug Get Paid to Write Almost there! Otherwise Internet Explorer (IE) will load what it calls its built-in "friendly HTTP error message" instead of your 404 page. https://www.digitalocean.com/community/tutorials/how-to-create-a-custom-404-page-in-apache

Apache Custom 404 Error Page

If no, you have created a bigger issue and may want to revert back to a backup version of your .htaccess file. Referer URL – This field refers to the page where the visitor was located when making the next request. Setup Before going through this tutorial, you should already have created a custom 404 page and saved it into your website's directory. Browse other questions tagged apache .htaccess xampp or ask your own question.

How To Get Started With mod_pagespeed with Apache on a CentOS and Fedora Cloud Server How To Use the .htaccess File How To Set Up Mod_Rewrite (page 2) How to Create Work with your web designer to create a custom 404 error page. 3. Howto prevent chrgrp from clearing “setuid bit”? Apache Default Error Page Save the file as 404NotFound.php.

Otherwise, put your own content in these locations: