<?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: Don&#8217;t let the WordPress address (URL) take the piss out of you!</title>
	<atom:link href="http://ok-cool.com/posts/read/285-dont-let-the-wordpress-address-url-take-the-piss-out-of-you/feed/" rel="self" type="application/rss+xml" />
	<link>http://ok-cool.com/posts/read/285-dont-let-the-wordpress-address-url-take-the-piss-out-of-you/</link>
	<description>OKCOOL make cool digital applications. We help companies balance brand and technology. From mashups to mobile shennanigans to social networks.</description>
	<lastBuildDate>Tue, 16 Mar 2010 08:21:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: TriDino</title>
		<link>http://ok-cool.com/posts/read/285-dont-let-the-wordpress-address-url-take-the-piss-out-of-you/comment-page-1/#comment-4504</link>
		<dc:creator>TriDino</dc:creator>
		<pubDate>Sat, 27 Feb 2010 02:42:14 +0000</pubDate>
		<guid isPermaLink="false">http://ok-cool.com/?p=285#comment-4504</guid>
		<description>Thanks, man. I just jerked off my wp site by manipulating the url field. &lt;br&gt;With your fix, everything works fine again! Thanks a lot!&lt;br&gt;Chris</description>
		<content:encoded><![CDATA[<p>Thanks, man. I just jerked off my wp site by manipulating the url field. <br />With your fix, everything works fine again! Thanks a lot!<br />Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Orly and her website &#171; Native and Natural Born Citizenship Explored</title>
		<link>http://ok-cool.com/posts/read/285-dont-let-the-wordpress-address-url-take-the-piss-out-of-you/comment-page-1/#comment-2983</link>
		<dc:creator>Orly and her website &#171; Native and Natural Born Citizenship Explored</dc:creator>
		<pubDate>Thu, 17 Sep 2009 19:24:54 +0000</pubDate>
		<guid isPermaLink="false">http://ok-cool.com/?p=285#comment-2983</guid>
		<description>[...] this helps. For a solution see red text below or look at this link which [...]</description>
		<content:encoded><![CDATA[<p>[...] this helps. For a solution see red text below or look at this link which [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: name</title>
		<link>http://ok-cool.com/posts/read/285-dont-let-the-wordpress-address-url-take-the-piss-out-of-you/comment-page-1/#comment-2226</link>
		<dc:creator>name</dc:creator>
		<pubDate>Wed, 29 Jul 2009 08:45:58 +0000</pubDate>
		<guid isPermaLink="false">http://ok-cool.com/?p=285#comment-2226</guid>
		<description>Real,</description>
		<content:encoded><![CDATA[<p>Real,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitchell</title>
		<link>http://ok-cool.com/posts/read/285-dont-let-the-wordpress-address-url-take-the-piss-out-of-you/comment-page-1/#comment-2219</link>
		<dc:creator>Mitchell</dc:creator>
		<pubDate>Fri, 10 Jul 2009 01:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://ok-cool.com/?p=285#comment-2219</guid>
		<description>You Legend. 2 seconds of google searching has solved a problem which has messed me around many times!</description>
		<content:encoded><![CDATA[<p>You Legend. 2 seconds of google searching has solved a problem which has messed me around many times!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Kelleher</title>
		<link>http://ok-cool.com/posts/read/285-dont-let-the-wordpress-address-url-take-the-piss-out-of-you/comment-page-1/#comment-2100</link>
		<dc:creator>Lee Kelleher</dc:creator>
		<pubDate>Fri, 20 Mar 2009 13:00:44 +0000</pubDate>
		<guid isPermaLink="false">http://ok-cool.com/?p=285#comment-2100</guid>
		<description>You know, I never thought about doing that for the DB host. Using the &quot;hosts&quot; file for that is a good idea. I&#039;ll be doing that in future!</description>
		<content:encoded><![CDATA[<p>You know, I never thought about doing that for the DB host. Using the &#8220;hosts&#8221; file for that is a good idea. I&#8217;ll be doing that in future!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://ok-cool.com/posts/read/285-dont-let-the-wordpress-address-url-take-the-piss-out-of-you/comment-page-1/#comment-2098</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Tue, 17 Mar 2009 18:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://ok-cool.com/?p=285#comment-2098</guid>
		<description>Cheers Lee, that was more or less what I was planning to do. Thanks for posting the code... I shall copy and paste that ;)

The other approach I&#039;ve taken before is to setup a local resolver so I can set the DB host to something like MYSQL and then just edit /etc/hosts (or windows/system32/drivers/etc/host on winblows). Also makes migrating the DB server a bit easier.</description>
		<content:encoded><![CDATA[<p>Cheers Lee, that was more or less what I was planning to do. Thanks for posting the code&#8230; I shall copy and paste that ;)</p>
<p>The other approach I&#8217;ve taken before is to setup a local resolver so I can set the DB host to something like MYSQL and then just edit /etc/hosts (or windows/system32/drivers/etc/host on winblows). Also makes migrating the DB server a bit easier.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Kelleher</title>
		<link>http://ok-cool.com/posts/read/285-dont-let-the-wordpress-address-url-take-the-piss-out-of-you/comment-page-1/#comment-2097</link>
		<dc:creator>Lee Kelleher</dc:creator>
		<pubDate>Tue, 17 Mar 2009 17:57:48 +0000</pubDate>
		<guid isPermaLink="false">http://ok-cool.com/?p=285#comment-2097</guid>
		<description>Good tip! I&#039;d remember hearing about that on wp-hackers a while back, (then completely forgot about it).

For the DB config settings, I use a quick-n-dirty if/else ...

if ($_SERVER[&#039;SERVER_NAME&#039;] == &#039;localhost&#039;)
{
 // local db settings
}
else
{
 // remote db settings
}

Obviously you&#039;d change &quot;localhost&quot; to whatever your local dev hostname would be.</description>
		<content:encoded><![CDATA[<p>Good tip! I&#8217;d remember hearing about that on wp-hackers a while back, (then completely forgot about it).</p>
<p>For the DB config settings, I use a quick-n-dirty if/else &#8230;</p>
<p>if ($_SERVER['SERVER_NAME'] == &#8216;localhost&#8217;)<br />
{<br />
 // local db settings<br />
}<br />
else<br />
{<br />
 // remote db settings<br />
}</p>
<p>Obviously you&#8217;d change &#8220;localhost&#8221; to whatever your local dev hostname would be.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
