Forum Moderators: phranque
I am running Apache and like [custom] 404 [pages].
Will you show me yours? I love 404's...
[edited by: jdMorgan at 4:21 am (utc) on Jan. 8, 2008]
[edit reason] No URLs, please. See Terms of Service. [/edit]
We don't allow posting of links to personal sites here, in order to discourage posting based on purely-promotional motives, to keep the signal-to-noise ratio high, and to protect our members and their sites.
Your custom 404 implementation is broken, and returns a 302-Found status. This may lead to duplicate-content and/or non-optimal spidering problems with search engines, and leaves your site vulnerable to malicious exploits intended to cause you such problems.
Check it yourself with the "Live HTTP Headers" add-on for Firefox and Mozilla-based browsers. An essential tool for the Webmaster, and easy to find with a search. Any request for a bad URL on your site results in a 302-Found status response -- Not good!
The most-common reason for this error is using a directive such as
ErrorDocument 404 http://www.example.com/custom-404.html
ErrorDocument 404 /custom-404.html
As documented in the Apache core ErrorDocument documentation [httpd.apache.org], using a canonical URL instead of a local URL-path results in a 302-Found redirect response being generated instead of the desired 404-Not Found response. Since search engines take the server response literally, they will mark *any* URL in your domain as an existing page, leading to problems for your site.
A custom 404 page should have the following characteristics. It should:
In addition to sleek visual design and effective navigation, a professional site should have all of its technicalities in order.
Jim
In the past, I was a plaything for my fellow webmaster, but I have grown a lot since then and wish to exhume a much more professional page targeted to attract business, not my fellow webmaster.
Your comments are right on cue with my direction, and I appreciate the new things I learned from you. I am currently working to resolve many of the suggestions in your post.
For example, tonight I logged in to my Google Webmaster tools and found the error you spoke about. Google said they could not verify my webpage and I was going to ask about what I read there [google.com ] since I did not (still a little cloudy) understand.
From what you wrote, I'm pretty sure I need to go in to that hta and make that fix -- or at least check it and get back here after I know better what I did.
Thank you again. I hope others here are as kind as you. I'll be back as soon as I can.
Similarly, if your pages are all well-named, you could select new existing page URLs based on the keywords in the missing page-names themselves, and present those for the visitor to pick from.
Some sites have obvious categories, and some don't. Levels of organization and structure vary. We also don't do site reviews here, so this discussion is intentionally generalized... :)
Jim