aframevr / aframe-site

:a: Official A-Frame site.
https://aframe.io/
MIT License
99 stars 141 forks source link

Set canonical URL or no-index on older docs #408

Closed donmccurdy closed 7 years ago

donmccurdy commented 7 years ago

Pretty common to do a Google search and see docs from v0.2.0 as the top results. This can be fixed by:

  1. Set canonical URL on all pages to the 'master' version. This preserves any SEO benefit of links, but may be more trouble to maintain as page URLs change over time.
  2. Disallow /docs/0.2.0/ in robots.txt or include <meta name="robots" content="NOINDEX">.
cvan commented 7 years ago

Similar to this for #1:

<link rel="canonical" href="https://aframe.io/docs/0.2.0/<url>">
ngokevin commented 7 years ago

simple route, went with 2. to not index