<?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>Tutorials Connect &#187; Apache</title>
	<atom:link href="http://www.tutorialsconnect.com/category/web/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tutorialsconnect.com</link>
	<description>Tutorials for Linux Users and Web Developers</description>
	<lastBuildDate>Sun, 07 Jun 2009 10:57:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Automatically Add WWW to All Your URLs</title>
		<link>http://www.tutorialsconnect.com/2008/10/automatically-add-www-to-all-your-urls/</link>
		<comments>http://www.tutorialsconnect.com/2008/10/automatically-add-www-to-all-your-urls/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 22:57:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.tutorialsconnect.com/?p=26</guid>
		<description><![CDATA[It is always a good idea to pick one format for your website URL and stick with it.  If you want to make sure all your URLs have a &#8220;www&#8221; in front of them then paste the following code at the top of your &#8220;.htaccess&#8221; file.
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_URI}\\/%{HTTP_HOST}/www. ^/+(.+/)?[^.]*[^/]\\(/)([^w][^w][^w][^.].*/(www\.)¦.*)$ [OR,NC]
RewriteCond %{HTTP_HOST}/www. ^(/)?(/)?([^w][^w][^w][^.].*/(www\.))$ [NC]
RewriteRule ^ [...]]]></description>
			<content:encoded><![CDATA[<p>It is always a good idea to pick one format for your website URL and stick with it.  If you want to make sure all your URLs have a &#8220;www&#8221; in front of them then paste the following code at the top of your &#8220;.htaccess&#8221; file.</p>
<blockquote><p>Options +FollowSymlinks<br />
RewriteEngine On<br />
RewriteCond %{REQUEST_URI}\\/%{HTTP_HOST}/www. ^/+(.+/)?[^.]*[^/]\\(/)([^w][^w][^w][^.].*/(www\.)¦.*)$ [OR,NC]<br />
RewriteCond %{HTTP_HOST}/www. ^(/)?(/)?([^w][^w][^w][^.].*/(www\.))$ [NC]<br />
RewriteRule ^ http://%4%{HTTP_HOST}%{REQUEST_URI}%2 [L,R=301]</p></blockquote>
<p>The above code uses the apache mod_rewrite module to rewrite your URL.  It also makes sure that there is a trailing slash at the end of your URL.  This website is using the above code to make sure all URLs load with a &#8220;www&#8221; and have the appropriate trailing slashes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tutorialsconnect.com/2008/10/automatically-add-www-to-all-your-urls/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
