<?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>Xrvel Programming Blog &#187; Website</title>
	<atom:link href="http://www.xrvel.com/category/website/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xrvel.com</link>
	<description>Xrvel Blog</description>
	<lastBuildDate>Wed, 18 Aug 2010 04:20:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>With or Without WWW</title>
		<link>http://www.xrvel.com/7/website/with-or-without-www</link>
		<comments>http://www.xrvel.com/7/website/with-or-without-www#comments</comments>
		<pubDate>Thu, 15 May 2008 06:48:10 +0000</pubDate>
		<dc:creator>Xrvel</dc:creator>
				<category><![CDATA[Website]]></category>
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.xrvel.com/blog/?p=4</guid>
		<description><![CDATA[Folks, some of you have might have a website. For example you develop http://www.google.com (OF COURSE this is just an example ). You might have a question, whether use http://google.com (w/o &#8220;www&#8221;), or http://www.google.com (w/ &#8220;www&#8221;). I don&#8217;t suggest that &#8230; <a href="http://www.xrvel.com/7/website/with-or-without-www">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Folks, some of you have might have a website. For example you develop <a href="http://www.google.com" target="_blank">http://www.google.com</a> (OF COURSE this is just an example <img src='http://www.xrvel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="With or Without WWW Image" /> ). You might have a question, whether use <a href="http://google.com" target="_blank">http://google.com</a> (w/o &#8220;www&#8221;), or <a href="http://www.google.com" target="_blank">http://www.google.com</a> (w/ &#8220;www&#8221;). I don&#8217;t suggest that &#8220;www&#8221; is better, vice versa. But i&#8217;ll tell it about how to use with only, or without only.</p>
<p>The key is, you must create a .htaccess file in your root directory (or modify the old one if you&#8217;ve had it)</p>
<p>If you choose <strong>with</strong> www, use it in your .htaccess file</p>
<pre style="background-color:#F3F3F3;font-size:1.2em;padding:1em;">&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine on

  RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
  RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]

&lt;/IfModule&gt;</pre>
<p><span id="more-7"></span>If you choose <strong>without</strong> www, use it in your .htaccess file</p>
<pre style="background-color:#F3F3F3;font-size:1.2em;padding:1em;">&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine on

  RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
  RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

&lt;/IfModule&gt;</pre>
<p><span style="color: #ff0000;"><strong>Note : Your server <em>must</em> support rewrite module.</strong></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xrvel.com/7/website/with-or-without-www/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
