Webmaster Central Blog
Official news on crawling and indexing sites for the Google index
Make your 404 pages more useful
Tuesday, August 19, 2008
Your visitors may stumble into a
404 "Not found"
page on your website for a variety of reasons:
A mistyped URL, or a copy-and-paste mistake
Broken or truncated links on web pages or in an email message
Moved or deleted content
Confronted by a 404 page, they may then attempt to manually correct the URL, click the back button, or even navigate away from your site. As hinted in an
earlier post
for
"404 week at Webmaster Central"
, there are various ways to help your visitors get out of the dead-end situation. In our quest to make 404 pages more useful, we've just added a section in
Webmaster Tools
called "Enhance 404 pages". If you've created a
custom 404 page
this allows you to embed a widget in your 404 page that helps your visitors find what they're looking for by providing suggestions based on the incorrect URL.
Example: Jamie receives the link
www.example.com/activities/adventurecruise.html
in an email message. Because of formatting due to a bad email client, the URL is truncated to
www.example.com/activities/adventur
. As a result it returns a 404 page. With the 404 widget added, however, she could instead see the following:
In addition to attempting to correct the URL, the 404 widget also suggests the following, if available:
a link to the parent subdirectory
a sitemap webpage
site search query suggestions and search box
How do you add the widget? Visit the "Enhance 404 pages" section in Webmaster Tools, which allows you to generate a JavaScript snippet. You can then copy and paste this into your custom 404 page's code. As always, don't forget to
return a proper 404 code
.
Can you change the way it looks? Sure. We leave the HTML unstyled initially, but you can edit the CSS block that we've included. For more information, check out our
guide on how to customize the look of your 404 widget
.
This feature is currently experimental -- we might not provide corrections and suggestions for your site but we'll be working to improve the coverage. In the meantime, let us know what you think in the comments below or in our
group discussion
. Thanks for helping us make the Internet a more friendly place!
Written by Sahala Swenson, Webmaster Tools team
Hey! Rankings in mobile search results changed
April 21st
.
Check here if your site is mobile-friendly.
Labels
accessibility
10
advanced
193
API
2
apps
6
autocomplete
2
beginner
171
crawling and indexing
141
events
44
feedback and communication
73
general tips
80
geotargeting
1
Google+
1
hacked sites
8
hreflang
3
https
1
images
6
intermediate
204
interstitials
1
localization
21
malware
3
mobile
35
mobile-friendly
3
performance
11
products and services
56
search console
4
search queries
3
search results
99
security
3
sitemaps
43
structured data
10
TLDs
1
url removals
1
UX
1
verification
6
video
1
webmaster community
4
webmaster guidelines
43
webmaster tools
159
Archive
2015
Nov
Oct
Sep
Aug
Jul
May
Apr
Mar
Feb
Jan
2014
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2013
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2012
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2011
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2010
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2009
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2008
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2007
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2006
Dec
Nov
Oct
Sep
Aug
Feed
Follow @googlewmc
Give us feedback in our
Product Forums
.
Subscribe via email
Enter your email address:
Delivered by
FeedBurner