Blanks doubled content to avoid it and then shows the preferred version of the URL during indexing.
Goolge placed a new Metatag for the search engines: <link rel=“canonical”, which avoids double content and shows a preferred version of an indexed URL. In large sitemap.php the webmaster tools often shows dozens of doubly indicated pages. Often pages are indexed with the category ID, then with a category alias or with index.php? + article ID´s at the same time. The contents is always the same.
Explaining link: http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html
rt_canonical_alias V1.0 03.03.09
Docu: –
Forum: http://forum.phpwcms.org/viewtopic.php?p=114312#p114312
Autor: K.Heermann (flip-flop) http://planmatrix.de
CMS Version: >= 1.3
Version: V1.0
Tag: –
Filename: rt_canonical_alias.php
Folder: template/inc_script/frontend_render/
Condition: → /config/phpwcms/conf.inc.php
<?php /* ================================================================ 03.03.2008 (KH) flip-flop Output: <link rel="canonical" href="index.php?{CATEGORY_ALIAS}" /> Filename: rt_canonical_alias.php Folder: /template/inc_script/frontend_render/ Switch: $phpwcms['allow_ext_render'] = 1; (/config/phpwcms/conf.inc.php) Forum: http://forum.phpwcms.org/viewtopic.php?p=114327#p114327 ================================================================ */ // ---------------------------------------------------------------- // obligate check for phpwcms constants if (!defined('PHPWCMS_ROOT')) { die("You Cannot Access This Script Directly, Have a Nice Day."); } // ---------------------------------------------------------------- $block['custom_htmlhead']['index.php'] = ' <link rel="canonical" href="index.php?'.$content["struct"][$content["cat_id"]]["acat_alias"].'" />'; // -----------[ CLOSE ]---------------- ?>