This is an old revision of the document!


Canonical alias (SUMA)

Blanks doubled content avoid and the showes the preferenced version of the URL during indexing.

Goolge placed a new Metatag for the search engines: <link rel=“canonical”, which avoid double content and shows a preferred version of a indexed URL. In large sitemap.php the webmaster tools often shows dozens from doubly indicated sides. Often sides 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

  • $phpwcms['allow_ext_render'] = 1;


rt_canonical_alias

<?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 ]----------------
?>
english/phpwcms_replacer_rts/frontend_render/canonical-alias.1259957064.txt.gz · Last modified: 2018/06/03 18:08 (external edit)
www.planmatrix.de www.chimeric.de 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