<?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>Zihni &#187; RewriteCond</title>
	<atom:link href="http://www.zihni.net/tag/rewritecond/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zihni.net</link>
	<description>Zihinsel şeyler, web programlama falan filan</description>
	<lastBuildDate>Fri, 13 Aug 2010 16:22:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>RewriteCond Yönergesi</title>
		<link>http://www.zihni.net/apache/rewritecond-yonergesi/</link>
		<comments>http://www.zihni.net/apache/rewritecond-yonergesi/#comments</comments>
		<pubDate>Sat, 25 Oct 2008 22:39:37 +0000</pubDate>
		<dc:creator>Zihni</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[RewriteCond]]></category>

		<guid isPermaLink="false">http://www.zihni.net/?p=151</guid>
		<description><![CDATA[


RewriteCond yönergesi ile kural koşulları tanımlanır.
Sözdizimi:

1
RewriteCond TestString CondPattern

Örneğin, sitem.com  şeklinde girilen adresleri www.sitem.com adresine yönlendirmek isteyelim, yani www subdamaini kullanılmadan siteye giriş olmasın.

1
2
RewriteCond %&#123;HTTP_HOST&#125; !^www\.sitem\.com$
RewriteRule &#40;.*&#41; http://www.sitem.com/$1 [R=301,L]

HTTP_HOST değeri www.sitem.com&#8217;a eşit değilse aşağıdaki kuralı işlet diyoruz.
]]></description>
			<content:encoded><![CDATA[<p>RewriteCond yönergesi ile kural koşulları tanımlanır.<br />
Sözdizimi:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">RewriteCond TestString CondPattern</pre></td></tr></table></div>

<p>Örneğin, sitem.com  şeklinde girilen adresleri www.sitem.com adresine yönlendirmek isteyelim, yani www subdamaini kullanılmadan siteye giriş olmasın.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">RewriteCond <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>HTTP_HOST<span style="color: #009900;">&#125;</span> <span style="color: #339933;">!</span>^www\<span style="color: #339933;">.</span>sitem\<span style="color: #339933;">.</span>com$
RewriteRule <span style="color: #009900;">&#40;</span><span style="color: #339933;">.*</span><span style="color: #009900;">&#41;</span> http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//www.sitem.com/$1 [R=301,L]</span></pre></td></tr></table></div>

<p>HTTP_HOST değeri www.sitem.com&#8217;a eşit değilse aşağıdaki kuralı işlet diyoruz.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zihni.net/apache/rewritecond-yonergesi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
