<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to: Multi-site CodeIgniter Set-up</title>
	<atom:link href="http://www.codr.eu/multi-site-codeigniter-set-up/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codr.eu/multi-site-codeigniter-set-up</link>
	<description>dev screencasts &#38; tutorials</description>
	<lastBuildDate>Fri, 04 Dec 2009 16:54:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Phil Sturgeon</title>
		<link>http://www.codr.eu/multi-site-codeigniter-set-up/comment-page-1#comment-19</link>
		<dc:creator>Phil Sturgeon</dc:creator>
		<pubDate>Tue, 08 Sep 2009 16:07:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.codr.eu/?p=93#comment-19</guid>
		<description>The article was aimed at having a single shared codebase with several domains pointing to it, but of course, you could do either as this code would work either way.</description>
		<content:encoded><![CDATA[<p>The article was aimed at having a single shared codebase with several domains pointing to it, but of course, you could do either as this code would work either way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aditu</title>
		<link>http://www.codr.eu/multi-site-codeigniter-set-up/comment-page-1#comment-18</link>
		<dc:creator>Aditu</dc:creator>
		<pubDate>Mon, 07 Sep 2009 21:57:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.codr.eu/?p=93#comment-18</guid>
		<description>Ok. So you should write it is for the same CODE-BASE FILES and not for just several CODE-BASE copies. I misunderstood you want to copy your code-base files to different servers and not just one server.</description>
		<content:encoded><![CDATA[<p>Ok. So you should write it is for the same CODE-BASE FILES and not for just several CODE-BASE copies. I misunderstood you want to copy your code-base files to different servers and not just one server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Sturgeon</title>
		<link>http://www.codr.eu/multi-site-codeigniter-set-up/comment-page-1#comment-17</link>
		<dc:creator>Phil Sturgeon</dc:creator>
		<pubDate>Mon, 07 Sep 2009 14:01:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.codr.eu/?p=93#comment-17</guid>
		<description>You have missed the point of this entirely. If you use a raw IP to access your website or have multiple domains accessing the same content, then you would not want to be doing this. This is a tutorial explaining how you can run one code-base with multiple domains accessing different content.

If your IP changes, it doesn&#039;t matter as you are using the HTTP_HOST setting which uses the domain name. HTTP_HOST is a standard $_SERVER item and will be populated by any standard Apache installation. The only time I have known it to be missing is accessing PHP via the command line and of course I had no expectation for it to be there.

I thank you for your suggestions but you have clearly misunderstood what this tutorial was meant to achieve. Perhaps you could write up a tutorial explaining your goals and methods for us to publish here?

&lt;strong&gt;Update:&lt;/strong&gt; Thinking about it the example already shows you how different domains can access the same content or different content. It is all based on the cases set in the database.php config file. example.com and www.example.com could be replaced with examplea.com and exampleb.com. They would be different domains looking at the same data, while the other cases in the switch are looking for different domains and different data.</description>
		<content:encoded><![CDATA[<p>You have missed the point of this entirely. If you use a raw IP to access your website or have multiple domains accessing the same content, then you would not want to be doing this. This is a tutorial explaining how you can run one code-base with multiple domains accessing different content.</p>
<p>If your IP changes, it doesn&#8217;t matter as you are using the HTTP_HOST setting which uses the domain name. HTTP_HOST is a standard $_SERVER item and will be populated by any standard Apache installation. The only time I have known it to be missing is accessing PHP via the command line and of course I had no expectation for it to be there.</p>
<p>I thank you for your suggestions but you have clearly misunderstood what this tutorial was meant to achieve. Perhaps you could write up a tutorial explaining your goals and methods for us to publish here?</p>
<p><strong>Update:</strong> Thinking about it the example already shows you how different domains can access the same content or different content. It is all based on the cases set in the database.php config file. example.com and <a href="http://www.example.com" rel="nofollow">http://www.example.com</a> could be replaced with examplea.com and exampleb.com. They would be different domains looking at the same data, while the other cases in the switch are looking for different domains and different data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aditu</title>
		<link>http://www.codr.eu/multi-site-codeigniter-set-up/comment-page-1#comment-16</link>
		<dc:creator>Aditu</dc:creator>
		<pubDate>Sun, 06 Sep 2009 01:32:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.codr.eu/?p=93#comment-16</guid>
		<description>I meant dumb because the tutorial states obvious things.

And for the $_SERVER[&#039;HTTP_HOST&#039;] solution:

This solution won&#039;t work for multidomain hosts and for raw IPs and even if you fill in all possible values you can&#039;t be sure IP is still valid after some time (it can change).

The most simple solution is to add site designation into small text file (ie. site/site.txt) or even a folder name. Every time you update site files this one doesn&#039;t change. Even when the site is accessed using other valid domain name the site works because it doesn&#039;t guess. It still works even if IP changes.</description>
		<content:encoded><![CDATA[<p>I meant dumb because the tutorial states obvious things.</p>
<p>And for the $_SERVER['HTTP_HOST'] solution:</p>
<p>This solution won&#8217;t work for multidomain hosts and for raw IPs and even if you fill in all possible values you can&#8217;t be sure IP is still valid after some time (it can change).</p>
<p>The most simple solution is to add site designation into small text file (ie. site/site.txt) or even a folder name. Every time you update site files this one doesn&#8217;t change. Even when the site is accessed using other valid domain name the site works because it doesn&#8217;t guess. It still works even if IP changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Chater</title>
		<link>http://www.codr.eu/multi-site-codeigniter-set-up/comment-page-1#comment-15</link>
		<dc:creator>Paul Chater</dc:creator>
		<pubDate>Fri, 04 Sep 2009 21:24:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.codr.eu/?p=93#comment-15</guid>
		<description>If you&#039;re going to post something, at least post something useful instead of being a Troll.</description>
		<content:encoded><![CDATA[<p>If you&#8217;re going to post something, at least post something useful instead of being a Troll.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aditu</title>
		<link>http://www.codr.eu/multi-site-codeigniter-set-up/comment-page-1#comment-14</link>
		<dc:creator>Aditu</dc:creator>
		<pubDate>Fri, 04 Sep 2009 17:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.codr.eu/?p=93#comment-14</guid>
		<description>The most dumb tutorial ever.</description>
		<content:encoded><![CDATA[<p>The most dumb tutorial ever.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
