< Browse > Home / Tips & Tricks / Blog article: Google widget to your custom 404 page

| Mobile | RSS

Google widget to your custom 404 page

Google now offer a widget for customized 404 pages.

The code is below

<script type="text/javascript">
  var GOOG_FIXURL_LANG = 'en';
  var GOOG_FIXURL_SITE = 'http://mobizong.com/';
</script>
<script type="text/javascript"
    src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>

Here in this code you can replace mobizong.com with your own site url.
The output of this script is like.

Example

If a user types in the incorrect url http://www.example.com/news/recentz we’ll display the following:

Example.com
Sorry, but the page you are trying to view does not exist.
404 widget
Closest match: http://www.example.com/news/recent/
Other things to try:
  • Go to http://www.example.com/news/
  • Go to the sitemap of the site: http://www.example.com/sitemap.html
  • Search www.example.com:
Leave a Reply 585 views, 3 so far today

Most Commented Posts

No Comments

(Required)
(Required, will not be published)

ppn