an attempt to fix the Google search problem - Mailing list pgsql-www

From Peter Eisentraut
Subject an attempt to fix the Google search problem
Date
Msg-id 38c68b83-30ae-c039-acd0-9e853997edc4@2ndquadrant.com
Whole thread Raw
Responses Re: an attempt to fix the Google search problem
Re: an attempt to fix the Google search problem
List pgsql-www
It is a well-known problem that a Google search for something in the
PostgreSQL documentation will usually return hits in old documentation
versions first, because those pages have been around for the longest.

I believe I have a promising fix for that.  By adding a <link
rel="canonical"> to the documentation pages that point to the "current"
version, search engines will be encouraged to return the current version
search results.

I had heard that the Django project had the same problem and got this
solution from there.  See for example the source of this page:
<https://docs.djangoproject.com/en/1.10/topics/db/models/>.  Here is
also some information from Google about this:
<https://webmasters.googleblog.com/2013/04/5-common-mistakes-with-relcanonical.html>

I think this is worth trying.  A one-line patch is attached.

--
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment

pgsql-www by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Wiki editor request
Next
From: Magnus Hagander
Date:
Subject: Re: an attempt to fix the Google search problem