]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Add a canonical link to all pages, so search engines will prefer 2.2 over 2.0
authorDaniel Gruno <humbedooh@apache.org>
Fri, 13 Jul 2012 19:35:30 +0000 (19:35 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Fri, 13 Jul 2012 19:35:30 +0000 (19:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@1361345 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/xsl/common.xsl

index e35ed25ce8384c00df23abfe8f01c2c66fa48660..15377619429173f3a9efc1321ff68e48244cff9e 100644 (file)
            rel="stylesheet"
            href="{$path}/style/css/manual-print.css"/>
 
-    <!-- chm files do not need a favicon -->
+    <!-- chm files do not need a favicon or a canonical link-->
     <xsl:if test="not($is-chm or $is-zip)">&lf;
         <link rel="shortcut icon" href="{$path}/images/favicon.ico" />
+        <link rel="canonical" href="http://httpd.apache.org/docs/2.2{concat($metafile/path, $metafile/basename, '.html')}"/>
     </xsl:if>
 </head>
 </xsl:template>