View Full Version : Custom 404 pages
12-10-2004, 04: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
12-10-2004, 04:14 PM
What web server does your server run?
12-10-2004, 06:00 PM
create a file called ".htaccess" (just that) and write the following in it:
ErrorDocument 404 /my404error.html
and put it in your root directory.
12-10-2004, 06:06 PM
That's only on Apache Web Server, that doesn't work on IIS.
12-14-2004, 03: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
12-14-2004, 05: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
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.