<?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>Lonnie Knows Everything &#187; PHP</title>
	<atom:link href="http://blog.oneduality.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.oneduality.com</link>
	<description>So you don&#039;t have to!</description>
	<lastBuildDate>Wed, 01 Sep 2010 19:19:22 +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>Multiple domain names in Joomla 1.0.x</title>
		<link>http://blog.oneduality.com/2009/01/14/multiple-domain-names-in-joomla-10x/</link>
		<comments>http://blog.oneduality.com/2009/01/14/multiple-domain-names-in-joomla-10x/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 15:48:38 +0000</pubDate>
		<dc:creator>Lonnie</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.oneduality.com/?p=32</guid>
		<description><![CDATA[If you&#8217;re running Joomla 1.0.x and you&#8217;ve tried to get more than one domain name pointing to it, then you&#8217;ve no doubt realized that it doesn&#8217;t really work out that well. I mean, the site will come up but the moment you click a link you will be sent directly to the original site url. [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re running Joomla 1.0.x and you&#8217;ve tried to get more than one domain name pointing to it, then you&#8217;ve no doubt realized that it doesn&#8217;t really work out that well. I mean, the site will come up but the moment you click a link you will be sent directly to the original site url.</p>
<p>Well this aims to give you a quick, easy solution!</p>
<p><span id="more-32"></span></p>
<p>The first thing you&#8217;ll want to do is open up your <strong>configuration.php</strong> file in your editor of choice.</p>
<p>Look for the variable &#8220;$mosConfig_live_site&#8221;, this is no doubt configured to your current web site address! and this is what is causing your problem.  We&#8217;ll be changing it to this:</p>
<p>$mosConfig_live_site = &#8220;http://&#8221; . $_SERVER['HTTP_HOST'];</p>
<p>This will pull the site&#8217;s URL out of an environment variable on the server! This means that no matter what URL is used to get to your site, Joomla will automatically set $mosConfig_live_site to match.</p>
<p>This solution works in the world of Linux and Apache, if you&#8217;re running Joomla in a windows environment and this doesn&#8217;t work, I suggest going to your Joomla control panel and looking at System info -&gt; php info &#8230; You&#8217;re trying to find a variable that contains the website name without http:// in front of it .. once you find something, adjust the code above! if you find one that has http:// in front of it, then you can further adjust the code to suit your needs.</p>
<p>Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oneduality.com/2009/01/14/multiple-domain-names-in-joomla-10x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
