<?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>Andrew Marconi &#187; mod_rewrite</title>
	<atom:link href="http://andrewmarconi.com/tag/mod_rewrite/feed/" rel="self" type="application/rss+xml" />
	<link>http://andrewmarconi.com</link>
	<description>UX-Focused Technical Project Manager, Developer and Digital Producer</description>
	<lastBuildDate>Fri, 18 May 2012 19:24:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to Normalize URLs &amp; Keep Google Happy</title>
		<link>http://andrewmarconi.com/2009/05/normalize-urls-for-google/</link>
		<comments>http://andrewmarconi.com/2009/05/normalize-urls-for-google/#comments</comments>
		<pubDate>Wed, 06 May 2009 19:47:53 +0000</pubDate>
		<dc:creator>Andrew Marconi</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://andrewmarconi.com/?p=6</guid>
		<description><![CDATA[This is something I always (1) forget to do, and (2) forget how to do. Simply add this code (modified for your domain name, of course) to your .htaccess file. This is important to implement for your search engine ranking. &#8230; <a href="http://andrewmarconi.com/2009/05/normalize-urls-for-google/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is something I always (1) forget to do, and (2) forget how to do. Simply add this code (modified for your domain name, of course) to your .htaccess file.</p>
<blockquote><p>This is important to implement for your search engine ranking. Google, for example, thinks www.domain.com is a different site from domain.com, and this can seriously impact where you rank in Google. There are other ways of doing this, but the below is the only one that doesn&#8217;t spit back a 500 error on my server, for some reason.</p>
<p><code>RewriteEngine On<br />
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]<br />
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]</code></p></blockquote>
<p>If you want to force &#8216;www&#8217; on the front end of your URL, switch it up with:</p>
<p><code>RewriteEngine On<br />
RewriteCond %{HTTP_HOST} ^domain.com$ [NC]<br />
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]</code></p>
<p>[Via <a href="http://snippets.dzone.com/posts/show/2264" target="_blank">DZone Snippets</a>] </p>
]]></content:encoded>
			<wfw:commentRss>http://andrewmarconi.com/2009/05/normalize-urls-for-google/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

