<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Yocandra&#039;s Blog &#187; mode-rewrite</title>
	<atom:link href="http://www.yocandra.de/blog/tag/mode-rewrite/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yocandra.de</link>
	<description>inspiration &#38; memory palace</description>
	<lastBuildDate>Thu, 18 Sep 2014 19:24:19 +0000</lastBuildDate>
	<language>de-DE</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>.htaccess</title>
		<link>http://www.yocandra.de/blog/wordpress/htaccess/</link>
		<comments>http://www.yocandra.de/blog/wordpress/htaccess/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 11:44:42 +0000</pubDate>
		<dc:creator><![CDATA[Judith]]></dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[mode-rewrite]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.yocandra.de/?p=336</guid>
		<description><![CDATA[ht&#8230; was? Nun da war doch irgendwo der Wurm drin. Meine aktuellen Artikel wurden für die Außenwelt einfach nicht sichtbar. Alles blieb am Facebookmarketing Artikel vom 11. März hängen und die Fragen: „Wann schreibst du denn mal wieder etwas, du hast doch jetzt jede Menge Zeit?“ häuften sich. Freitagnacht bekam ich dann den Tipp, etwas [&#8230;]<p><a href="http://www.yocandra.de/blog/wordpress/htaccess/">.htaccess</a> ist ein Artikel von: <a href="http://www.yocandra.de">Yocandra&#039;s Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<div id="attachment_340" style="width: 160px" class="wp-caption alignright"><a href="http://www.yocandra.de/wp-content/uploads/2010/03/43965075_5b6a66da6c_o.jpg"><img class="size-thumbnail wp-image-340" src="http://www.yocandra.de/wp-content/uploads/2010/03/43965075_5b6a66da6c_o-150x150.jpg" alt="43965075 5b6a66da6c O-150x150 in " width="150" height="150" /></a><p class="wp-caption-text">@Joe Bennett </p></div>
<p><strong>ht&#8230; was? </strong></p>
<p>Nun da war doch irgendwo der Wurm drin. Meine aktuellen Artikel wurden für die Außenwelt einfach nicht sichtbar. Alles blieb am <a title="Link zum Artikel: Facebookmarketing" href="http://www.yocandra.de/blog/allgemein/facebookmarketing/" target="_self">Facebookmarketing Artikel</a> vom 11. März hängen und die Fragen: „Wann schreibst du denn mal wieder etwas, du hast doch jetzt jede Menge Zeit?“ häuften sich.</p>
<p>Freitagnacht bekam ich dann den <strong>Tipp</strong>, etwas an der<strong> .htaccess Konfiguration</strong> zu ändern, damit die Seite auch ohne das <strong>www. </strong>in der Adresse erreichbar ist.</p>
<p><strong>Versuch 1</strong></p>
<p>RewriteEngine On<br />
RewriteCond %{HTTP_HOST} ^yocandra\.de$ [NC]<br />
RewriteRule ^(.*)$ http://www.yocandra.de/$1 [R=301,L]</p>
<p>Wenn ich nun den Blog wie folgt aufrief: http://yocandra.de wurde die Seite aus dem Cache geladen. Doof, weil in der Adressleiste stand jetzt folgendes: http://www.yocandra.de/supercache/yocandra.de/index.html.gz.</p>
<p>Wollte ich dagegen einen Artikel aufrufen (http://yocandra.de/blog/allgemein/podcast/) so landete ich nicht im Artikel, sondern auf der Startseite. Da wollte ich aber gar nicht hin. Ich wollte ja zu einem ganz bestimmten Artikel und nicht auf die Startseite umgeleitet werden. Also <strong>änderte ich nochmal die</strong> <strong>.htaccess Konfiguration</strong> wie folgt ab:</p>
<p><strong>Versuch 2</strong></p>
<p>&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
# If subdomain www exists, remove it first<br />
# RewriteCond %{HTTP_HOST} ^www\.([^\.]+\.[^\.]+)$ [NC]<br />
# RewriteRule ^(.*)$ http://%1/$1 [R=301,L]<br />
RewriteCond %{HTTP_HOST} !^www\.yocandra\.de$ [NC]<br />
RewriteRule (.*) http://www.yocandra.de/$1 [R=301,L]<br />
# If requested resource does not exist as a file<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
# and does not end with a period followed by a filetype<br />
RewriteCond %{REQUEST_URI} !..+$<br />
# and does not end with a slash<br />
RewriteCond %{REQUEST_URI} !/$<br />
# then add a trailing slash and redirect<br />
RewriteRule (.*) $1/ [R=301,L]<br />
&lt;/IfModule&gt;<br />
# BEGIN WordPress<br />
&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]<br />
&lt;/IfModule&gt;</p>
<p>Diesen <strong>Codeschnippsel</strong> fand ich im <a title="Link zum  Codeschnippsel: .htaccess für WordPress" href="http://www.webideas.de/2007/08/22/aufgepimptes-htaccess-mod_rewrite-skript-fuer-wordpress/" target="_blank">Blog</a> von Stephan Sigloch (<a title="Link zur Website von  webideas" href="http://www.webideas.de" target="_blank">webideas.de</a>).</p>
<p><strong>Fazit</strong></p>
<p>Also egal, ob ich die Website nun mit: http://yocandra.de oder mit http://www.yocandra.de aufrufe, dass <strong>www.</strong> wird automatisch mit einem <strong>301 redirect</strong> hinzugefügt. Ansonsten habe ich auch die sogenannten <strong>“trailing” Slashes</strong> und die <strong>Permalink Struktur</strong> von WordPress mit übernommen. Ab jetzt klappts wohl auch mit Google oder den Verlinkungen auf Twitter. Danke.</p>
<p><a href="http://www.yocandra.de/blog/wordpress/htaccess/">.htaccess</a> ist ein Artikel von: <a href="http://www.yocandra.de">Yocandra&#039;s Blog</a>.</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.yocandra.de/blog/wordpress/htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->