Over a million developers have joined DZone.

.htaccess Error404.php

DZone's Guide to

.htaccess Error404.php

· ·
Free Resource
// This goes in .htaccess in the web root.

# error docs
ErrorDocument 404 /error404.php

// Use existing site template to start 404 page then add this code in your main content div.

Page not found

You came to this page from $referrer, this could be a broken link so please email the webmaster to inform us of this.

"; } ?>

Sorry, we couldn't find the page on this website

Please use the navigation links to help locate what you're looking for.


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}