<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Drupalscoop's Blog</title>
	<atom:link href="http://drupalscoop.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://drupalscoop.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sun, 11 Jan 2009 16:58:39 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='drupalscoop.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/184a31c443cfb0a693bfe1b49dd3dd23?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Drupalscoop's Blog</title>
		<link>http://drupalscoop.wordpress.com</link>
	</image>
			<item>
		<title>Using htaccess with Drupal 5</title>
		<link>http://drupalscoop.wordpress.com/2008/12/31/using-htaccess-with-drupal-5/</link>
		<comments>http://drupalscoop.wordpress.com/2008/12/31/using-htaccess-with-drupal-5/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 08:25:55 +0000</pubDate>
		<dc:creator>drupalscoop</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[301 redirect]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://drupalscoop.wordpress.com/?p=3</guid>
		<description><![CDATA[301 Redirects using the .htaccess file with Drupal
I have several urls that resolve to our website and it has been said that search engines can punish you for apparently having duplicate content.
The urls are:

xyz-tech.com
www.xyz-tech.com
mymainurl.com
www.mymainurl.com

The only one that we need to use is the www.3xlogic.com so everything else should do a 301 redirect to that url. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drupalscoop.wordpress.com&blog=6005881&post=3&subd=drupalscoop&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>301 Redirects using the .htaccess file with Drupal</p>
<p>I have several urls that resolve to our website and it has been said that search engines can punish you for apparently having duplicate content.</p>
<p>The urls are:</p>
<ul>
<li>xyz-tech.com</li>
<li>www.xyz-tech.com</li>
<li>mymainurl.com</li>
<li>www.mymainurl.com</li>
</ul>
<p>The only one that we need to use is the www.3xlogic.com so everything else should do a 301 redirect to that url. This basically means that if a user enters 3xlogic.com, the rule will change it automatically to www.3xlogic.com and so forth.</p>
<p>If your web host uses apache they may have provided you with htaccess where you can specify what is called a 301 redirect.</p>
<p>You can do this by adding the following lines:</p>
<pre>RewriteCond %{HTTP_HOST} ^csi-tech\.com$ [NC]
RewriteRule ^(.*)$ http://www.3xlogic.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.csi-tech\.com$ [NC]
RewriteRule ^(.*)$ http://www.3xlogic.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^3xlogic\.com$ [NC]
RewriteRule ^(.*)$ http://www.3xlogic.com/$1 [L,R=301]</pre>
<p>This should be placed after the mod_rewrite tag:</p>
<pre>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine on</pre>
<p>The .htaccess file is found in your public_html folder. At least it was on mine.</p>
<p>Not knowing exactly how htaccess works I first tried to write the three rewrite conditions (RewriteCond) followed by a single rewrite rule (RewriteRule) but it didn&#8217;t work.</p>
<p>It looks like htaccess can give you a lot of control over access features of the apache webserver even if you don&#8217;t have full access. So you might see further articles on this topic or you might do a bit of research yourself.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/drupalscoop.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/drupalscoop.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/drupalscoop.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/drupalscoop.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/drupalscoop.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/drupalscoop.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/drupalscoop.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/drupalscoop.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/drupalscoop.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/drupalscoop.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drupalscoop.wordpress.com&blog=6005881&post=3&subd=drupalscoop&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://drupalscoop.wordpress.com/2008/12/31/using-htaccess-with-drupal-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56e5b8a2711e38cae852b0da1524a48e?s=96&#38;d=identicon" medium="image">
			<media:title type="html">drupalscoop</media:title>
		</media:content>
	</item>
	</channel>
</rss>