You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by hu...@apache.org on 2012/07/13 21:35:30 UTC
svn commit: r1361345 -
/httpd/httpd/branches/2.0.x/docs/manual/style/xsl/common.xsl
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>