apache change 404 page code example Example: how to change 404 page in apache ErrorDocument 404 /new404.html # create .htaccess file in the site root directory