httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1361345 - /httpd/httpd/branches/2.0.x/docs/manual/style/xsl/common.xsl
Date Fri, 13 Jul 2012 19:35:30 GMT
Author: humbedooh
Date: Fri Jul 13 19:35:30 2012
New Revision: 1361345

URL: http://svn.apache.org/viewvc?rev=1361345&view=rev
Log:
Add a canonical link to all pages, so search engines will prefer 2.2 over 2.0

Modified:
    httpd/httpd/branches/2.0.x/docs/manual/style/xsl/common.xsl

Modified: httpd/httpd/branches/2.0.x/docs/manual/style/xsl/common.xsl
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/docs/manual/style/xsl/common.xsl?rev=1361345&r1=1361344&r2=1361345&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/docs/manual/style/xsl/common.xsl (original)
+++ httpd/httpd/branches/2.0.x/docs/manual/style/xsl/common.xsl Fri Jul 13 19:35:30 2012
@@ -168,9 +168,10 @@
            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>



Mime
View raw message