<?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>Web Design Talk &#187; htaccess</title>
	<atom:link href="http://www.web-design-talk.co.uk/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.web-design-talk.co.uk</link>
	<description>Web Design &#38; Development Blog</description>
	<lastBuildDate>Wed, 28 Jul 2010 21:50:39 +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>301 Redirects for SEO Using htaccess</title>
		<link>http://www.web-design-talk.co.uk/20/301-redirects-for-seo-using-htaccess/</link>
		<comments>http://www.web-design-talk.co.uk/20/301-redirects-for-seo-using-htaccess/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 21:08:07 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Jquery Framework]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[useability]]></category>

		<guid isPermaLink="false">http://www.web-design-talk.co.uk/?p=20</guid>
		<description><![CDATA[Google treats www.website.com and website.com as two totally different websites. This is very bad for your (or even a client's) website as it may lead to duplicate content and different pageranks to those sites.  This is how Google "canonicalizes" the url and is very bad from an SEO standpoint.]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 130px"><img title="404 vs 301" src="http://www.web-design-talk.co.uk/images/404-vs-301-redirect.jpg" alt="301 Redirects Prevent 404 Errors" width="120" height="120" /><p class="wp-caption-text">301 Redirects Prevent 404 Errors</p></div>
<p>Google treats www.website.com and website.com as two totally different websites. This is very bad for your (or even a client&#8217;s) website as it may lead to duplicate content and different pageranks to those sites.  This is how Google &#8220;canonicalizes&#8221; the url and is very bad from an SEO standpoint.</p>
<p>In essence, a web server could return totally different results for each of those pages. I have also encountered the situation where clients have set their preferred domain in Google webmaster tools, have given out the opposite version for SEM and wonder why they don&#8217;t see results <img src='http://www.web-design-talk.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> You can easily check the above by using the &#8220;site:&#8221; operator in Google search. E.g. site:www.website.com and site:website.com</p>
<p>You can use &#8220;mod rewrite&#8221; rules as a powerful method for redirecting many URLs from one location to another.  This is a simple server level technique for handling redirects. The way people handle this canonicalization issue is purely a personal choice, although the below method can be altered for directing to the none www version of the url.</p>
<p>The .htaccess file is simply an ASCII file created with any normal text editor. You need to save the file as &#8216;.htaccess&#8217; (no filename, .htaccess is the extension!). Open you newly created .htaccess file in your favoured text editor and add the following lines of code, replacing domain.com with your domain:</p>
<pre class="brush: xml;">
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]</pre>
<p>Upload the .htaccess file to the root folder of your website and you&#8217;re done. All your traffic will be permanently redirected from a non-www version of your website to a www version of your website. To do the opposite (direct all traffic to the non www version use the below code in the .htaccess file):</p>
<pre class="brush: xml;">RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.com
RewriteRule (.*) http://domain.com/$1 [R=301,L]
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.web-design-talk.co.uk/20/301-redirects-for-seo-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Resources</title>
		<link>http://www.web-design-talk.co.uk/resources/</link>
		<comments>http://www.web-design-talk.co.uk/resources/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 15:55:45 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Jquery Framework]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[useability]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.web-design-talk.co.uk/?page_id=5</guid>
		<description><![CDATA[Content Soon&#8230;.]]></description>
			<content:encoded><![CDATA[<p>Content Soon&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.web-design-talk.co.uk/resources/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Who?</title>
		<link>http://www.web-design-talk.co.uk/about/</link>
		<comments>http://www.web-design-talk.co.uk/about/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 21:02:01 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Jquery Framework]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[useability]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.web-design-talk.co.uk/?page_id=2</guid>
		<description><![CDATA[http://www.web-design-talk.co.uk I am a full-time developer for an internet company located in Staffordshire (Midlands) of the United Kingdom. I have been designing and coding websites for over 2 years using PHP, ASP, JQuery, XHTML, CSS and JavaScript. I have been lucky to work on a wide variety of projects from small intranet sites, personal websites [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.web-design-talk.co.uk/">http://www.web-design-talk.co.uk</a></p>
<p>I am a full-time developer for an internet company located in Staffordshire (Midlands) of the United Kingdom. I have been designing and coding websites for over 2 years using PHP, ASP, <a title="JQuery.com" href="http://www.jquery.com">JQuery</a>, XHTML, CSS and JavaScript. I have been lucky to work on a wide variety of projects from small intranet sites, personal websites and full e-commerce storefronts. I am currently available on a limited basis for interesting freelance work. I also offer the following services (although you can contact me via email to discuss web services not mentioned here):</p>
<ul>
<li>SEO / Website Marketing / Offsite SEO</li>
<li>Bespoke Website Design/Development</li>
<li>Website Updates</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.web-design-talk.co.uk/about/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
