cvs: phpweb /include layout.inc
| From: | Hannes Magnusson | Date: | Fri, 10 Apr 2009 08:57:51 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-4378@lists.php.net to get a copy of this message | ||
bjori Fri Apr 10 08:57:51 2009 UTC
Modified files:
/phpweb/include layout.inc
Log:
Set rel=canonical to the real url of the pages
http://cvs.php.net/viewvc.cgi/phpweb/include/layout.inc?r1=1.298&r2=1.299&diff_format=u
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.298 phpweb/include/layout.inc:1.299
--- phpweb/include/layout.inc:1.298 Fri Apr 10 08:51:22 2009
+++ phpweb/include/layout.inc Fri Apr 10 08:57:51 2009
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.298 2009/04/10 08:51:22 bjori Exp $ */
+/* $Id: layout.inc,v 1.299 2009/04/10 08:57:51 bjori Exp $ */
// Set the static content root differently on php.net
$_SERVER['STATIC_ROOT'] = ($MYSITE == 'http://www.php.net/') ?
@@ -184,6 +184,7 @@
<!--[if IE]><![endif]><![endif]-->
<meta http-equiv="Content-Type" content="text/html;
charset={$config['charset']}"/>
<link rel="shortcut icon"
href="{$_SERVER['STATIC_ROOT']}/favicon.ico" />{$link}
+ <link rel="canonical" href="http://php.net/{$_SERVER['BASE_PAGE']}"
/>
<script type="text/javascript"
src="{$_SERVER['STATIC_ROOT']}/userprefs.js"></script>{$base}{$meta}{$moreheadtags}
</head>
<body{$onload}>