<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://fbb.just4test.de/extern.php?action=feed&amp;tid=4552&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Informationen für CMS/made simple / Frage zu htaccess]]></title>
		<link>http://www.cmsmadesimple.de/forum/viewtopic.php?id=4552</link>
		<description><![CDATA[Die aktuellsten Beiträge in Frage zu htaccess.]]></description>
		<lastBuildDate>Wed, 26 Aug 2015 06:13:54 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Frage zu htaccess]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36169#p36169</link>
			<description><![CDATA[<div class="quotebox"><cite>cyberman schrieb:</cite><blockquote><div><p>Zum einen - auch www ist eine Subdomain <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/wink.png" alt="wink" />. Ist zwar zumeist Standard, aber primär wäre eigentlich domain.tld</p></div></blockquote></div><p>Stimmt, habe ich ganz vergessen, mein Hoster hat mit das mal vor langer Zeit erklärt.</p><div class="quotebox"><cite>faglork schrieb:</cite><blockquote><div><p>Du hast doch sicher einen Google Webmaster Account? Dann setz einfach die bevorzugte Domain auf die www ...</p></div></blockquote></div><p>Nein, habe ich zur Zeit nicht. Darum werde ich wohl kümmern müßen, aber erst, wenn alles halbwegs vernünftig steht.</p><p>Nan, deine Lösung behalte ich im Hinterkopf und werde sie später mal ausprobieren. Momentan habe ich leider noch ein paar andere Baustellen.</p>]]></description>
			<author><![CDATA[dummy@example.com (TeXnik)]]></author>
			<pubDate>Wed, 26 Aug 2015 06:13:54 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36169#p36169</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frage zu htaccess]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36164#p36164</link>
			<description><![CDATA[<div class="quotebox"><cite>faglork schrieb:</cite><blockquote><div><p>Das kann nicht sein. Obiger code leitet auf die <a href="http://www.xyz.com" rel="nofollow">www.xyz.com</a> um.</p></div></blockquote></div><p>Ja, eben. Das ist ja das Problem. &quot;liquid-factory.bke-ltd.com&quot; fäng nämlich auch nicht mit &quot;www&quot; an, daher wird auf &quot;<em>www.</em>bke-ltd.com&quot; umgeleitet, was aber in dem Fall nicht gewollt war. Die Regel beachtet einfach keine Subdomains.</p><p>Wenn es unbedingt sein muss, versuch&#039;s mal damit:</p><div class="codebox"><pre><code>RewriteCond %{HTTP_HOST} ^www\.([^.]+\.)+([^.]+\.[^.]+)$ [NC]
RewriteRule ^.*$ http://%1%2%{REQUEST_URI} [R=301,L]

RewriteCond %{HTTP_HOST} ^([^.]+\.[^.]+)$ [NC]
RewriteRule ^.*$ http://www.%1%{REQUEST_URI} [R=301,L]</code></pre></div><p>Mit einer einzigen Regel hab ich es nicht hinbekommen.</p><p>Die erste Regel leitet alles von &quot;www.[beliebige Subdomain].[beliebige domain].[beliebige tld]&quot; auf &quot;[beliebige Subdomain].[beliebige domain].[beliebige tld]&quot; um. <br />Also &quot;<em>www.</em>liquid-factory.bke-ltd.com&quot; wird zu &quot;liquid-factory.bke-ltd.com&quot; <br />(entfernt bei Subdomains also das www)</p><p>Die zweite leitet alles was <em>keine</em> Subdomain hat auf &quot;www.[beliebige domain].[beliebige tld]&quot; um.<br />Also aus &quot;bke-ltd.com&quot; wird &quot;<em>www.</em>bke-ltd.com&quot;</p><p>liquid-factory.bke-ltd.com bleibt so.<br /><em>www</em>.bke-ltd.com bleibt ebenfalls so.</p><p>Ich hab das ganze hiermit getestet: <a href="http://htaccess.madewithlove.be/" rel="nofollow">http://htaccess.madewithlove.be/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (NaN)]]></author>
			<pubDate>Tue, 25 Aug 2015 19:35:37 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36164#p36164</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frage zu htaccess]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36163#p36163</link>
			<description><![CDATA[<div class="quotebox"><cite>TeXnik schrieb:</cite><blockquote><div><div class="quotebox"><cite>faglork schrieb:</cite><blockquote><div><div class="codebox"><pre><code>RewriteCond %{HTTP_HOST} !^www\.mydomain\.de$ [NC] 
RewriteRule ^(.*)$ http://www.mydomain.de/$1 [R=301,L]</code></pre></div></div></blockquote></div><p>Genauso hatte ich es zu Beginn gemacht.</p><p>Das Ergebnis war, daß ich von liquid-factory.bke-ltd.com auf bke-ltd.com umgeleitet wurde.</p></div></blockquote></div><p>Das kann nicht sein. Obiger code leitet auf die <a href="http://www.xyz.com" rel="nofollow">www.xyz.com</a> um.</p><div class="quotebox"><cite>TeXnik schrieb:</cite><blockquote><div><p>Und da gab es nun eine Catch-22 Situation auf der Seite war ein Link zum Shop, und der wurde wieder zurück auf die CMS Startseite geschickt.</p></div></blockquote></div><p>Ja wie? Ist der Shop in einer subdomain?</p><br /><div class="quotebox"><cite>TeXnik schrieb:</cite><blockquote><div><p> Meine Recherche hat ergeben, daß www oder nicht mehr in duplicated content einfließen soll.</p></div></blockquote></div><p>Das kannst du doch eh vergessen! Du hast doch sicher einen Google Webmaster Account? Dann setz einfach die bevorzugte Domain auf die www ...</p><p>Servus,<br />Alex</p>]]></description>
			<author><![CDATA[dummy@example.com (faglork)]]></author>
			<pubDate>Tue, 25 Aug 2015 17:18:43 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36163#p36163</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frage zu htaccess]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36156#p36156</link>
			<description><![CDATA[<div class="quotebox"><cite>faglork schrieb:</cite><blockquote><div><div class="codebox"><pre><code>RewriteCond %{HTTP_HOST} !^www\.mydomain\.de$ [NC] 
RewriteRule ^(.*)$ http://www.mydomain.de/$1 [R=301,L]</code></pre></div></div></blockquote></div><p>Genauso hatte ich es zu Beginn gemacht.</p><p>Das Ergebnis war, daß ich von liquid-factory.bke-ltd.com auf bke-ltd.com umgeleitet wurde.<br />Und da gab es nun eine Catch-22 Situation. Auf der Seite war ein Link zum Shop, und der wurde wieder zurück auf die CMS Startseite geschickt.<br />Ich nun die redicts wieder aus beiden htaccess (Hauptdomain und Subdomain) genommen. Meine Recherche hat ergeben, daß www oder nicht mehr in duplicated content einfließen soll.</p>]]></description>
			<author><![CDATA[dummy@example.com (TeXnik)]]></author>
			<pubDate>Tue, 25 Aug 2015 12:43:29 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36156#p36156</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frage zu htaccess]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36152#p36152</link>
			<description><![CDATA[<p>Probier doch mal</p><div class="codebox"><pre><code>RewriteCond %{HTTP_HOST} !^www\.mydomain\.de$ [NC] 
RewriteRule ^(.*)$ http://www.mydomain.de/$1 [R=301,L]</code></pre></div><p>--&gt; hier werden einfach alle Anfragen, die nicht auf www gehen, umgeschrieben.</p><p>Sollte für deinen Fall passen.</p><p>Servus,<br />Alex</p>]]></description>
			<author><![CDATA[dummy@example.com (faglork)]]></author>
			<pubDate>Tue, 25 Aug 2015 08:02:52 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36152#p36152</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frage zu htaccess]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36150#p36150</link>
			<description><![CDATA[<p>Zum einen - auch www ist eine Subdomain <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/wink.png" alt="wink" />. Ist zwar zumeist Standard, aber primär wäre eigentlich domain.tld.</p><p>Zum anderen - www + Subdomain ist relativ ungewöhnlich und eher selten genutzt. Würde es ja nach ersterem bedeuten = Subsubdomain + Subdomain + Domain.</p><p>Google mag zwar keinen Duplicated Content, aber auf solche URL-Ideen wird es sich wohl eher nicht einlassen, wenn es nirgends verlinkt ist.</p>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Tue, 25 Aug 2015 07:31:14 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36150#p36150</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frage zu htaccess]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36148#p36148</link>
			<description><![CDATA[<p>Egal, wie ich den Code anwendete, ich landete immer auf der übergeordneten Domain.<br />Meine Suche nach einem redirect von subdomain zu subdomain mit www vornan war erfolglos.<br />Ich werde auf die Umleitung verzichten, da es so aussieht, als wäre das Thema www oder nicht nicht mehr relevant.</p>]]></description>
			<author><![CDATA[dummy@example.com (TeXnik)]]></author>
			<pubDate>Tue, 25 Aug 2015 01:42:22 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36148#p36148</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frage zu htaccess]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36145#p36145</link>
			<description><![CDATA[<div class="quotebox"><cite>TeXnik schrieb:</cite><blockquote><div><p>Nur um ganz sicher zu gehen:</p><p>.mydomain lautet dann bei mir .subdomain.top-level-domain ?</p></div></blockquote></div><p>Hm, den Code nochmals angeschaut. Er macht das umgekehrte, das du willst, er entfernt das www. Für ein Force auf www habe ich selber gerade keine Lösung.</p>]]></description>
			<author><![CDATA[dummy@example.com (nockenfell)]]></author>
			<pubDate>Mon, 24 Aug 2015 19:48:26 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36145#p36145</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frage zu htaccess]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36140#p36140</link>
			<description><![CDATA[<p>Nur um ganz sicher zu gehen:</p><p>.mydomain lautet dann bei mir .subdomain.top-level-domain ?</p>]]></description>
			<author><![CDATA[dummy@example.com (TeXnik)]]></author>
			<pubDate>Mon, 24 Aug 2015 16:33:42 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36140#p36140</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frage zu htaccess]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36138#p36138</link>
			<description><![CDATA[<p>ohne gestestet zu haben<br /><a href="http://stackoverflow.com/questions/21985138/how-to-redirect-www-subdomain-to-non-www-when-domain-is-redirected-to-www" rel="nofollow">http://stackoverflow.com/questions/2198 … ted-to-www</a></p><div class="codebox"><pre><code># rule for forcing www on main domain
RewriteCond %{HTTP_HOST} ^mydomain\.com$ [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

# rule for removing www on sub domains
RewriteCond %{HTTP_HOST} ^www\.([^.]+\.mydomain\.com)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (nockenfell)]]></author>
			<pubDate>Mon, 24 Aug 2015 15:49:41 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36138#p36138</guid>
		</item>
		<item>
			<title><![CDATA[Frage zu htaccess]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36137#p36137</link>
			<description><![CDATA[<p>Meine Webseiten sind einmal mit und einmal ohne www zu erreichen.</p><p>Da wollte ich Rewrite benutzen, um immer eine URL zu haben.</p><p>Irgendwie mache ich da einen Fehler:</p><div class="codebox"><pre><code>    RewriteCond %{HTTP_HOST} ^subdomain.tld.com [NC]]
    RewriteRule ^(.*) [url]http://www.subdomain.tld.com/$1[/url] [R=301,L] </code></pre></div><p>schickt mich zur Top-Level-Domain.</p><p>Wo ist mein Denkfehler?</p>]]></description>
			<author><![CDATA[dummy@example.com (TeXnik)]]></author>
			<pubDate>Mon, 24 Aug 2015 14:37:12 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=36137#p36137</guid>
		</item>
	</channel>
</rss>
