Canonical alias (SUMA)

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:

rt_canonical_alias V1.0 03.03.09

Docu: –

Autor: K.Heermann (flip-flop)
CMS Version: >= 1.3
Version: V1.0

Tag: –

Filename: rt_canonical_alias.php

Folder: template/inc_script/frontend_render/


  • $phpwcms['allow_ext_render'] = 1;


/* ================================================================
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/
   ================================================================ */
// ----------------------------------------------------------------
// 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 ]----------------
english/phpwcms_replacer_rts/frontend_render/canonical-alias.txt · Last modified: 2011/01/21 15:22 by Claus Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0