Changing 404 error.
How do you change the 404 (and the others) error pages?
This can be done, I've seen it on Gamespy.com and other sites, but I've never been able to figure it out.
[ FinalCreations ]
How do you change the 404 (and the others) error pages?
This can be done, I've seen it on Gamespy.com and other sites, but I've never been able to figure it out.
[ FinalCreations ]
Mark Hensler posted this at 18:30 — 17th April 2002.
He has: 4,048 posts
Joined: Aug 2000
You'll use the ErrorDocument directive in the .htaccess file.
Syntax:
ErrorDocument 404 /404.html
Artur posted this at 18:06 — 19th April 2002.
They have: 4 posts
Joined: Apr 2002
Is there any reason not to use the full URL path to the 404.html?
ErrorDocument 404 http://www.somesite.com/404.html
The reason I'm asking is that I'm not entirely sure that the /404.html may be interpreted properly by some configurations, especially in subdirectories.
Artur
eBoundHost Support
Web Hosting: $9.95
Dedicated: $99.95
mairving posted this at 19:04 — 19th April 2002.
They have: 2,256 posts
Joined: Feb 2001
It is just not necessary to use the full path. The / tells the server to look for it in the root web directory. If you had sub-domains, then you would have to use the full path.
Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states
Suzanne posted this at 20:13 — 19th April 2002.
She has: 5,507 posts
Joined: Feb 2000
Check the documentation as well. For some error messages you have to use the full url, for others you cannot use it at all.
Also, some spiders can get caught in a 404 error page if you use a relative CSS link, so if you do create custom error pages, you might want to use absolute urls for the CSS.
FinalMjolnir666 posted this at 00:05 — 23rd April 2002.
They have: 45 posts
Joined: Feb 2002
Okay thanks.
hotcut posted this at 14:45 — 27th April 2002.
They have: 133 posts
Joined: Sep 2000
that can't be done with IIS5, is that correct? Or is there a way?
Abhishek Reddy posted this at 14:49 — 27th April 2002.
He has: 3,348 posts
Joined: Jul 2001
It can be done with IIS5.
Go to the website properties through MMC, then choose the "Custom Errors" (:eek: ) tab. From there you can select what error pages you want to customize (i.e. 500, 404 etc) and click Edit Properties, then select your file.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.