<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Kommentare zu: TYPO3: Canonical-Tag gegen Duplicate Content in Suchmaschinen</title>
	<atom:link href="http://blog.joergboesche.de/typo3-canoncial-tag-gegen-duplicate-content-fur-suchmaschinen/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.joergboesche.de/typo3-canoncial-tag-gegen-duplicate-content-fur-suchmaschinen</link>
	<description>(Szene-)Fotografie - Webdevelopment - Suchmaschinenoptimierung - Privat</description>
	<lastBuildDate>Wed, 08 Feb 2012 13:51:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Von: Thomas</title>
		<link>http://blog.joergboesche.de/typo3-canoncial-tag-gegen-duplicate-content-fur-suchmaschinen/comment-page-1#comment-9033</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Wed, 18 Jan 2012 10:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joergboesche.de/?p=407#comment-9033</guid>
		<description>Warum einfach wenn&#039;s auch kompliziert geht? Anstatt das TypoScript-Gewurstel ziehe ich so etwas vor.

Im TypoScript:
page2.headerData.300 = PHP_SCRIPT_EXT 
page2.headerData.300.file = fileadmin/php/canonical_link.php

In der PHP-Datei:
$absRequestUri = &#039;http://&#039; . $_SERVER[&#039;HTTP_HOST&#039;] . $_SERVER[&#039;REQUEST_URI&#039;];
$absRequestUri = str_replace(&#039;type=1&#039;, &#039;&#039;, $absRequestUri);
$absRequestUri = rtrim($absRequestUri, &#039;?&amp;&#039;);

$content = sprintf(&#039;&#039;, $absRequestUri);</description>
		<content:encoded><![CDATA[<p>Warum einfach wenn&#8217;s auch kompliziert geht? Anstatt das TypoScript-Gewurstel ziehe ich so etwas vor.</p>
<p>Im TypoScript:<br />
page2.headerData.300 = PHP_SCRIPT_EXT<br />
page2.headerData.300.file = fileadmin/php/canonical_link.php</p>
<p>In der PHP-Datei:<br />
$absRequestUri = &#8216;http://&#8217; . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];<br />
$absRequestUri = str_replace(&#8216;type=1&#8242;, &#8221;, $absRequestUri);<br />
$absRequestUri = rtrim($absRequestUri, &#8216;?&amp;&#8217;);</p>
<p>$content = sprintf(&#8221;, $absRequestUri);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Riesen Dan</title>
		<link>http://blog.joergboesche.de/typo3-canoncial-tag-gegen-duplicate-content-fur-suchmaschinen/comment-page-1#comment-8590</link>
		<dc:creator>Riesen Dan</dc:creator>
		<pubDate>Mon, 12 Dec 2011 12:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joergboesche.de/?p=407#comment-8590</guid>
		<description>Hallo Jörg,
Danke für dein Tipp. Hatte damit aber Probleme mit der Startseite, da gab&#039;s mir ein //. Musste dies nun mit einer Variablen lösen:

Constants
# url fuer canonical
# Default
meineVariable {
var99 = http://www.xxx.ch
}
# ALOCO
[globalVar = TSFE:id=1]
meineVariable {
var99 = http://www.xxx.ch/
}
[global]



Setup
lib.canonical = TEXT
lib.canonical {
	typolink.parameter.data = TSFE:id
	typolink.returnLast = url
	wrap = 
}
page.headerData.1000 &lt; lib.canonical</description>
		<content:encoded><![CDATA[<p>Hallo Jörg,<br />
Danke für dein Tipp. Hatte damit aber Probleme mit der Startseite, da gab&#8217;s mir ein //. Musste dies nun mit einer Variablen lösen:</p>
<p>Constants<br />
# url fuer canonical<br />
# Default<br />
meineVariable {<br />
var99 = <a href="http://www.xxx.ch" rel="nofollow"></a><a href='http://www.xxx.ch'>http://www.xxx.ch</a><br />
}<br />
# ALOCO<br />
[globalVar = TSFE:id=1]<br />
meineVariable {<br />
var99 = <a href="http://www.xxx.ch/" rel="nofollow"></a><a href='http://www.xxx.ch/'>http://www.xxx.ch/</a><br />
}<br />
[global]</p>
<p>Setup<br />
lib.canonical = TEXT<br />
lib.canonical {<br />
	typolink.parameter.data = TSFE:id<br />
	typolink.returnLast = url<br />
	wrap =<br />
}<br />
page.headerData.1000 &lt; lib.canonical</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Peter Scheffler</title>
		<link>http://blog.joergboesche.de/typo3-canoncial-tag-gegen-duplicate-content-fur-suchmaschinen/comment-page-1#comment-1498</link>
		<dc:creator>Peter Scheffler</dc:creator>
		<pubDate>Thu, 04 Mar 2010 12:46:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joergboesche.de/?p=407#comment-1498</guid>
		<description>Bei mir war zur korrekten Ausgabe neben der Angabe von config.baseURL = http://www.domain.tld/ außerdem noch die 
config.absRefPrefix = http://www.domain.tld/. Ansonsten wurde nur der Pfad, nicht aber die komplette Domain ausgegeben.</description>
		<content:encoded><![CDATA[<p>Bei mir war zur korrekten Ausgabe neben der Angabe von config.baseURL = <a href="http://www.domain.tld/" rel="nofollow"></a><a href='http://www.domain.tld/'>http://www.domain.tld/</a> außerdem noch die<br />
config.absRefPrefix = <a href="http://www.domain.tld/" rel="nofollow"></a><a href='http://www.domain.tld/'>http://www.domain.tld/</a>. Ansonsten wurde nur der Pfad, nicht aber die komplette Domain ausgegeben.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

