<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Running Two Domains On One Shared Hosting Server</title>
	<atom:link href="http://aarronwalter.com/2007/01/15/running-two-domains-on-one-shared-hosting-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://aarronwalter.com/2007/01/15/running-two-domains-on-one-shared-hosting-server/</link>
	<description></description>
	<pubDate>Mon, 06 Oct 2008 13:50:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: TK</title>
		<link>http://aarronwalter.com/2007/01/15/running-two-domains-on-one-shared-hosting-server/#comment-62944</link>
		<dc:creator>TK</dc:creator>
		<pubDate>Tue, 19 Aug 2008 15:20:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.aarronwalter.com/2007/01/15/running-two-domains-on-one-shared-hosting-server/#comment-62944</guid>
		<description>This works a treat, but I have been having endless problems trying to have both of my sites then share the same image folder (as there are many images common for both) for one of the domains created as above. My images folder is called 'imgs' and sits in the initial domain folder 'mydomain/imgs'.
Think i must be close, but just can't get it to work from a number of varying scripts below (which are added below the initial setup for the domains - also tried adding variations above)

A solution would be greatly appreciated!!

Some of the scripting I have tried without success are:

RewriteCond %{HTTP_HOST} a3rddomainihave.org
RewriteRule    ^imgs/([^/\.]+)/?$   /mydomain/imgs/$1  [L]
#
RewriteRule    ^a3rddomainihave/imgs/([^/\.]+)/?$   /mydomain/imgs/$1  [L]
#
RewriteCond %{HTTP_HOST} a3rddomainihave.org
RewriteRule    ^imgs/([^/\.]+)/?$   http://www.mydomain.com/imgs/$1  [L]
#
RewriteRule    ^http://www.a3rddomainihave.org/imgs/([^/\.]+)/?$   http://www.mydomain.com/imgs/$1  [L]
#
RewriteCond %{HTTP_HOST} a3rddomainihave.org
RewriteRule    ^imgs/([^/\.]+)/?$   /path/to/mydomain/imgs/$1  [L]</description>
		<content:encoded><![CDATA[<p>This works a treat, but I have been having endless problems trying to have both of my sites then share the same image folder (as there are many images common for both) for one of the domains created as above. My images folder is called &#8216;imgs&#8217; and sits in the initial domain folder &#8216;mydomain/imgs&#8217;.<br />
Think i must be close, but just can&#8217;t get it to work from a number of varying scripts below (which are added below the initial setup for the domains - also tried adding variations above)</p>
<p>A solution would be greatly appreciated!!</p>
<p>Some of the scripting I have tried without success are:</p>
<p>RewriteCond %{HTTP_HOST} a3rddomainihave.org<br />
RewriteRule    ^imgs/([^/\.]+)/?$   /mydomain/imgs/$1  [L]<br />
#<br />
RewriteRule    ^a3rddomainihave/imgs/([^/\.]+)/?$   /mydomain/imgs/$1  [L]<br />
#<br />
RewriteCond %{HTTP_HOST} a3rddomainihave.org<br />
RewriteRule    ^imgs/([^/\.]+)/?$   <a href="http://www.mydomain.com/imgs/1" rel="nofollow">http://www.mydomain.com/imgs/1</a>  [L]<br />
#<br />
RewriteRule    ^http://www.a3rddomainihave.org/imgs/([^/\.]+)/?$   <a href="http://www.mydomain.com/imgs/1" rel="nofollow">http://www.mydomain.com/imgs/1</a>  [L]<br />
#<br />
RewriteCond %{HTTP_HOST} a3rddomainihave.org<br />
RewriteRule    ^imgs/([^/\.]+)/?$   /path/to/mydomain/imgs/$1  [L]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aarron</title>
		<link>http://aarronwalter.com/2007/01/15/running-two-domains-on-one-shared-hosting-server/#comment-60325</link>
		<dc:creator>Aarron</dc:creator>
		<pubDate>Mon, 28 Jul 2008 21:34:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.aarronwalter.com/2007/01/15/running-two-domains-on-one-shared-hosting-server/#comment-60325</guid>
		<description>@CJ - Chapter 3: Server-Side Strategies covers various htaccess concepts (mod_rewrite for search engine friendly URLS, 301 redirects, etc/), but it's by no stretch a comprehensive examination of the subject. You might want to check out http://www.addedbytes.com/apache/mod_rewrite-cheat-sheet/ for a nice reference of common mod_rewrite solutions.

A properly executed 301 redirect will communicate to search engines that a page has moved, and the ranking associated with it should be transferred to the new page. Maybe you executed your 301 redirect improperly? Here's a quick example of how it should be done:

# Redirect to new contact page 
RewriteEngine On 
RewriteRule ^contact.html(.*)$ /contact.php [L,R=301] 

This is the safest way to redirect pages without losing PageRank. You should also update your sitemap.xml file when your site changes structure and ping the various search services that support it so they will index your site properly (see the free chapter on the book's companion site at http://buildingfindablewebsites.com/d/chapters/10_BFW.pdf for guidance with this).

"Is this temporary?" - That depends on your perspective. Although you can incur a slight speed hit when you have a lot of redirects (your server has an extra step in order to point users to the right content), it really is not a problem to keep your 301 redirects live for a long time. Redirects are not really something you would take down after a month or a year as some users may still have the old URL bookmarked, and would get a 404 page if you removed the redirect. But when search engine spiders see a redirect they will update the indexes accordingly, and begin to point traffic to your new page. In that sense it is temporary, but I don't recommend removing your redirects until you are absolutely certain they are no longer of any use.

Changing filenames is not risky if you use redirects to point requests for the old URL to the new one. Plan URLs intelligently when you build a site, and hopefully you won't find yourself having to make so many changes.</description>
		<content:encoded><![CDATA[<p>@CJ - Chapter 3: Server-Side Strategies covers various htaccess concepts (mod_rewrite for search engine friendly URLS, 301 redirects, etc/), but it&#8217;s by no stretch a comprehensive examination of the subject. You might want to check out <a href="http://www.addedbytes.com/apache/mod_rewrite-cheat-sheet/" rel="nofollow">http://www.addedbytes.com/apache/mod_rewrite-cheat-sheet/</a> for a nice reference of common mod_rewrite solutions.</p>
<p>A properly executed 301 redirect will communicate to search engines that a page has moved, and the ranking associated with it should be transferred to the new page. Maybe you executed your 301 redirect improperly? Here&#8217;s a quick example of how it should be done:</p>
<p># Redirect to new contact page<br />
RewriteEngine On<br />
RewriteRule ^contact.html(.*)$ /contact.php [L,R=301] </p>
<p>This is the safest way to redirect pages without losing PageRank. You should also update your sitemap.xml file when your site changes structure and ping the various search services that support it so they will index your site properly (see the free chapter on the book&#8217;s companion site at <a href="http://buildingfindablewebsites.com/d/chapters/10_BFW.pdf" rel="nofollow">http://buildingfindablewebsites.com/d/chapters/10_BFW.pdf</a> for guidance with this).</p>
<p>&#8220;Is this temporary?&#8221; - That depends on your perspective. Although you can incur a slight speed hit when you have a lot of redirects (your server has an extra step in order to point users to the right content), it really is not a problem to keep your 301 redirects live for a long time. Redirects are not really something you would take down after a month or a year as some users may still have the old URL bookmarked, and would get a 404 page if you removed the redirect. But when search engine spiders see a redirect they will update the indexes accordingly, and begin to point traffic to your new page. In that sense it is temporary, but I don&#8217;t recommend removing your redirects until you are absolutely certain they are no longer of any use.</p>
<p>Changing filenames is not risky if you use redirects to point requests for the old URL to the new one. Plan URLs intelligently when you build a site, and hopefully you won&#8217;t find yourself having to make so many changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CJ</title>
		<link>http://aarronwalter.com/2007/01/15/running-two-domains-on-one-shared-hosting-server/#comment-60220</link>
		<dc:creator>CJ</dc:creator>
		<pubDate>Sun, 27 Jul 2008 20:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.aarronwalter.com/2007/01/15/running-two-domains-on-one-shared-hosting-server/#comment-60220</guid>
		<description>I read your Building Findable Websites book and was very pleased to learn new strategies to incorporate into the sites that I build. I was hoping that you covered htaccess settings in your book, but I could not find it.  I just used code like the following to move the location of a page but after this change, the Google page rank fell from 3 to 0.

redirect 301 /old/old.htm http://www.you.com/new.htm

Is this temporary?  Is there an SEO best practices method for relocating/renaming a file or set of files?  I was trying to avoid the refresh meta tag. 

Follow up question - is it too risky to change the name of a file to a more search engine friendly name - say from booksale.htm to book-sale.htm?

Thanks for any feedback!</description>
		<content:encoded><![CDATA[<p>I read your Building Findable Websites book and was very pleased to learn new strategies to incorporate into the sites that I build. I was hoping that you covered htaccess settings in your book, but I could not find it.  I just used code like the following to move the location of a page but after this change, the Google page rank fell from 3 to 0.</p>
<p>redirect 301 /old/old.htm <a href="http://www.you.com/new.htm" rel="nofollow">http://www.you.com/new.htm</a></p>
<p>Is this temporary?  Is there an SEO best practices method for relocating/renaming a file or set of files?  I was trying to avoid the refresh meta tag. </p>
<p>Follow up question - is it too risky to change the name of a file to a more search engine friendly name - say from booksale.htm to book-sale.htm?</p>
<p>Thanks for any feedback!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaunty</title>
		<link>http://aarronwalter.com/2007/01/15/running-two-domains-on-one-shared-hosting-server/#comment-33234</link>
		<dc:creator>Jaunty</dc:creator>
		<pubDate>Sun, 10 Feb 2008 05:51:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.aarronwalter.com/2007/01/15/running-two-domains-on-one-shared-hosting-server/#comment-33234</guid>
		<description>I used your method before and it worked. But I'm trying it again after reseting my servers and it's not working.</description>
		<content:encoded><![CDATA[<p>I used your method before and it worked. But I&#8217;m trying it again after reseting my servers and it&#8217;s not working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aarron</title>
		<link>http://aarronwalter.com/2007/01/15/running-two-domains-on-one-shared-hosting-server/#comment-4408</link>
		<dc:creator>Aarron</dc:creator>
		<pubDate>Fri, 11 May 2007 22:11:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.aarronwalter.com/2007/01/15/running-two-domains-on-one-shared-hosting-server/#comment-4408</guid>
		<description>You have the general idea here, but  you should be able to abbreviate it as follows:

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} mydomain.com
RewriteCond %{REQUEST_URI} !mydomain/
RewriteRule ^(.*)$ mydomain/$1 [L]

RewriteCond %{HTTP_HOST} anotherdomainihave.net
RewriteCond %{REQUEST_URI} !sanotherdomainihave/
RewriteRule ^(.*)$ anotherdomainihave/$1 [L]

RewriteCond %{HTTP_HOST} a3rddomainihave.org
RewriteCond %{REQUEST_URI} !a3rddomainihave/
RewriteRule ^(.*)$ a3rddomainihave/$1 [L]</description>
		<content:encoded><![CDATA[<p>You have the general idea here, but  you should be able to abbreviate it as follows:</p>
<p>RewriteEngine On<br />
Options +FollowSymlinks<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} mydomain.com<br />
RewriteCond %{REQUEST_URI} !mydomain/<br />
RewriteRule ^(.*)$ mydomain/$1 [L]</p>
<p>RewriteCond %{HTTP_HOST} anotherdomainihave.net<br />
RewriteCond %{REQUEST_URI} !sanotherdomainihave/<br />
RewriteRule ^(.*)$ anotherdomainihave/$1 [L]</p>
<p>RewriteCond %{HTTP_HOST} a3rddomainihave.org<br />
RewriteCond %{REQUEST_URI} !a3rddomainihave/<br />
RewriteRule ^(.*)$ a3rddomainihave/$1 [L]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Boudy</title>
		<link>http://aarronwalter.com/2007/01/15/running-two-domains-on-one-shared-hosting-server/#comment-4405</link>
		<dc:creator>Chris Boudy</dc:creator>
		<pubDate>Fri, 11 May 2007 21:59:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.aarronwalter.com/2007/01/15/running-two-domains-on-one-shared-hosting-server/#comment-4405</guid>
		<description>Hi Aarron,  (Chris here again)

Just wanted to ask a question about this method.  Would this work with multiple domain name on the same server?  For example, let's say I added

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} mydomain.com
RewriteCond %{REQUEST_URI} !mydomain/
RewriteRule ^(.*)$ mydomain/$1 [L]

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} anotherdomainihave.net
RewriteCond %{REQUEST_URI} !sanotherdomainihave/
RewriteRule ^(.*)$ anotherdomainihave/$1 [L]

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} a3rddomainihave.org
RewriteCond %{REQUEST_URI} !a3rddomainihave/
RewriteRule ^(.*)$ a3rddomainihave/$1 [L]

to my .htaccess file.  Would this work or is it only for two?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Aarron,  (Chris here again)</p>
<p>Just wanted to ask a question about this method.  Would this work with multiple domain name on the same server?  For example, let&#8217;s say I added</p>
<p>RewriteEngine On<br />
Options +FollowSymlinks<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} mydomain.com<br />
RewriteCond %{REQUEST_URI} !mydomain/<br />
RewriteRule ^(.*)$ mydomain/$1 [L]</p>
<p>RewriteEngine On<br />
Options +FollowSymlinks<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} anotherdomainihave.net<br />
RewriteCond %{REQUEST_URI} !sanotherdomainihave/<br />
RewriteRule ^(.*)$ anotherdomainihave/$1 [L]</p>
<p>RewriteEngine On<br />
Options +FollowSymlinks<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} a3rddomainihave.org<br />
RewriteCond %{REQUEST_URI} !a3rddomainihave/<br />
RewriteRule ^(.*)$ a3rddomainihave/$1 [L]</p>
<p>to my .htaccess file.  Would this work or is it only for two?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
