Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating custom Page Not Found

Status
Not open for further replies.

DavidPaul

Programmer
Jun 24, 2000
36
GB
Something that I've been wondering is if it's possible to create your own Page Not Found page that is loaded whenever a page on your website isn't found rather than showing the IE generated one. e.g. you type and it doesn't exist, so it loads
I have seen some sites do this but I can't figure out how to implement it!!

Any help would be appreciated.
 
You can do this - if you're hosted on an Apache server, edit your .htaccess file and add the line :
ErrorDocument 404 /404.html

Then create a 404.html page & voila!

NB: You can also use this to replace other error pages too. One by one, the penguins steal my sanity. X-)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top