<?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>Khalil Majdalawi&#039;s Blog &#187; apache</title>
	<atom:link href="http://dev3k.com/blog/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev3k.com/blog</link>
	<description>Web development,Technology,Games and more...</description>
	<lastBuildDate>Tue, 08 Jun 2010 10:07:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Remove or force www from domain name</title>
		<link>http://dev3k.com/blog/2009/05/remove-or-force-www-from-domain-name/</link>
		<comments>http://dev3k.com/blog/2009/05/remove-or-force-www-from-domain-name/#comments</comments>
		<pubDate>Thu, 21 May 2009 08:39:31 +0000</pubDate>
		<dc:creator>Khalil Majdalawi</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://dev3k.com/blog/?p=247</guid>
		<description><![CDATA[its very simple SEO trick to avoid duplicate content on Google search engine and increase your rank , you have to chose which one suit you www or non-www first you have to enable &#8220;rewrite mod&#8221; which is apache server feature click here then use the following lines in your .htaccess file to remove WWW [...]]]></description>
			<content:encoded><![CDATA[<p>its very simple SEO trick to avoid duplicate content on Google search engine and increase your rank , you have to chose which one suit you www or non-www</p>
<p>first  you have to enable &#8220;rewrite mod&#8221; which is apache server feature <a href="http://dev3k.com/blog/2009/05/enable-mod-rewrite-in-apache/" target="_blank">click here</a></p>
<p>then use the following lines in your .htaccess file<br />
to remove WWW</p>
<pre><code>RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]</code></pre>
<p>to force WWW</p>
<pre><code>RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]</code></pre>
<p>Please, note that the .htaccess should be located in the web site main folder.</p>
<p>for farther reading about .htaccess <a href="http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/" target="_blank">Check this great post</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dev3k.com/blog/2009/05/remove-or-force-www-from-domain-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Mod rewrite in apache</title>
		<link>http://dev3k.com/blog/2009/05/enable-mod-rewrite-in-apache/</link>
		<comments>http://dev3k.com/blog/2009/05/enable-mod-rewrite-in-apache/#comments</comments>
		<pubDate>Thu, 21 May 2009 08:14:08 +0000</pubDate>
		<dc:creator>Khalil Majdalawi</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://dev3k.com/blog/?p=252</guid>
		<description><![CDATA[For Debian use sudo a2enmod rewrite For Windows Find the httpd.conf file (usually you will find it in a folder called conf, config or something along those lines) Inside the httpd.conf file uncomment the line LoadModule rewrite_module modules/mod_rewrite.so Also find the line ClearModuleList is uncommented then find and make sure that the line AddModule mod_rewrite.c [...]]]></description>
			<content:encoded><![CDATA[<p>
<strong>For Debian use</strong></p>
<pre><code>sudo a2enmod rewrite</code></pre>
<p><strong>For Windows </strong></p>
<ol>
<li> Find the httpd.conf file (usually you will find it in a folder called conf, config or something along those lines)</li>
<li> Inside the httpd.conf file uncomment the line LoadModule rewrite_module modules/mod_rewrite.so</li>
<li> Also find the line ClearModuleList is uncommented then find and make sure that the line AddModule mod_rewrite.c is not commented out.</li>
</ol>
<p>restart your apache service and you are cool to go</p>
]]></content:encoded>
			<wfw:commentRss>http://dev3k.com/blog/2009/05/enable-mod-rewrite-in-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
