...

View Full Version : Custom 404 pages



kawasaki
12-10-2004, 03:06 PM
I have my own personal server, and a online server that I can use to host websites, and I was wondering how I would make it so that I could get a customized 404 error page

gsnedders
12-10-2004, 03:14 PM
What web server does your server run?

schotte
12-10-2004, 05:00 PM
Hey,

create a file called ".htaccess" (just that) and write the following in it:



ErrorDocument 404 /my404error.html


and put it in your root directory.

Frank

gsnedders
12-10-2004, 05:06 PM
That's only on Apache Web Server, that doesn't work on IIS.

ghell
12-14-2004, 02:19 PM
you dont even need to bother with .htaccess on iis, just go to the iis default website properties and set custom errors (also in asp you can set a 404 pretty easily for whichever files, separately (its just a server.transfer to the location of the file in custom errors anyway.. there is probably something similar in php to do this and end execution after its run but i wont go into the details since im not very good at php and its easier to just do it on the server anyway.. im pretty sure you can set custom errors on apache/tomcat but my server is ws2k3 so ive never tried :p

riddy
12-14-2004, 04:59 PM
but dont u just name the page like 404.htm or somthing like tht i think i dont realy kno :D

please dont ava go if im wrong



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum