<?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>Blog dot Melimato dot Com &#187; SEO</title>
	<atom:link href="http://blog.melimato.com/tag/seo/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.melimato.com</link>
	<description>Those things we do</description>
	<lastBuildDate>Thu, 24 Dec 2009 11:58:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Using apache&#8217;s RedirectMatch instead of ServerAlias to avoid content duplication</title>
		<link>http://blog.melimato.com/using-apaches-redirectmatch-instead-of-serveralias-to-avoid-content-duplication/</link>
		<comments>http://blog.melimato.com/using-apaches-redirectmatch-instead-of-serveralias-to-avoid-content-duplication/#comments</comments>
		<pubDate>Mon, 18 May 2009 00:30:14 +0000</pubDate>
		<dc:creator>pablo</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://blog.melimato.com/using-apaches-redirectmatch-instead-of-serveralias-to-avoid-content-duplication/</guid>
		<description><![CDATA[Most web sites I do have many domains but want all those domains to point to the &#8220;main domain&#8221; www.domain.com. My first solution was to put Apaches&#8217;s directive ServerAlias in the site&#8217;s virtual host configuration. This lead to content duplication since domain.com and domain.net and www.domain.com are two different web sites for the rest of [...]]]></description>
			<content:encoded><![CDATA[<p>Most web sites I do have many domains but want all those domains to point to the &#8220;main domain&#8221; www.domain.com. My first solution was to put Apaches&#8217;s directive <a href="http://httpd.apache.org/docs/2.0/mod/core.html#serveralias">ServerAlias</a> in the site&#8217;s virtual host configuration. This lead to content duplication since domain.com and domain.net and www.domain.com are two different web sites for the rest of the world. To avoid this problem the only solution I&#8217;ve found was to create two different virtual hosts and set Apache&#8217;s <a href="http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirect">Redirect</a> directive. The first VirtualHost will hold all the domains aliases and redirect permanently (301) to the &#8220;main domain&#8221;</p>
<p><span id="more-116"></span></p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">&lt;VirtualHost ip_address:80&gt;
    ServerName domain.com
    ServerAlias domain.net
    ServerAlias domain.biz
    RedirectMatch permanent /(.*) http://www.domain.com/$1
&lt;/VirtualHost&gt;
&nbsp;
&lt;VirtualHost ip_address:80&gt;
    ServerName www.domain.com
    etc...
&lt;/VirtualHost&gt;</pre></div></div>

<div id="wherego_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://blog.melimato.com/using-apaches-redirectmatch-instead-of-serveralias-to-avoid-content-duplication/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
