<?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>Modern Street&#187; htaccess</title>
	<atom:link href="http://www.modernstreet.com/category/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.modernstreet.com</link>
	<description>A Blog on and about the Web</description>
	<lastBuildDate>Wed, 25 Aug 2010 13:50:26 +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>Redirecting your urls to a www prefix</title>
		<link>http://www.modernstreet.com/wordpress/www-redirect/</link>
		<comments>http://www.modernstreet.com/wordpress/www-redirect/#comments</comments>
		<pubDate>Thu, 05 Apr 2007 20:11:19 +0000</pubDate>
		<dc:creator>DarrinW</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.modernstreet.com/wordpress/www-redirect/</guid>
		<description><![CDATA[Here is a sure way to ensure that your site always starts with a http://www. prefix. It doesn&#8217;t really matter as far as SEO is concerned whether a www. is better than a non www, but it still appears that at least 90% of all sites on the web start with a www. If you [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a sure way to ensure that your site always starts with a <font color="#800000">http://www</font>. prefix. It doesn&#8217;t really matter as far as SEO is concerned whether a www. is better than a non www, but it still appears that at least 90% of all sites on the web start with a www.</p>
<p>If you use Fantastico to install your WordPress sites, you will have your url configured as <font color="#800000">http://YourSite.com</font> and so if you want to have your site always start as <font color="#800000">http://www.YourSite.com</font>, here are 2 ways to do it fast and easy.<span id="more-10"></span></p>
<p>1) Mod rewrite your .htaccess file by adding this piece of code to it:</p>
<blockquote><p><font color="#000000">Options +FollowSymLinks<br />
RewriteEngine On<br />
RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]<br />
RewriteRule ^(.*)$ </font><font color="#000000">http://www.domain.com/$1 [R=301,L]</font></p></blockquote>
<p>2) Use the excellent <a href="http://www.justinshattuck.com/wordpress-www-redirect-plugin/" title="WWW-Redirect plugin">plugin</a> from Justin Shattuck called WWW-Redirect. Just activate the plugin and under WordPress Options &gt; Redirect Options, choose &#8220;redirect to www&#8221; &#8211; true and &#8220;redirect index.php&#8221; &#8211; true and update the options.</p>
<p>Note, that if your site has already grown in backlinks and in the search engines without the www prefix, than it is best to leave it as it is, because Google still considers both types of prefixes as distinct. So your site could get a duplicate penalty hit if you tried to change the prefix all over again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.modernstreet.com/wordpress/www-redirect/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
