<?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>link2caro &#187; hướng dẫn</title>
	<atom:link href="http://blog.link2caro.net/tag/h%c6%b0%e1%bb%9bng-d%e1%ba%abn/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.link2caro.net</link>
	<description>I&#039;m just flesh &#039;n bones, but with you I feel I&#039;m flyin&#039; - Superman</description>
	<lastBuildDate>Thu, 24 Jun 2010 12:14:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Multi Domains with one WordPress installation</title>
		<link>http://blog.link2caro.net/read/multi-domains-with-one-wordpress-installation/</link>
		<comments>http://blog.link2caro.net/read/multi-domains-with-one-wordpress-installation/#comments</comments>
		<pubDate>Sun, 03 May 2009 01:04:14 +0000</pubDate>
		<dc:creator>CA RO</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[hướng dẫn]]></category>

		<guid isPermaLink="false">http://link2caro.net/?p=555</guid>
		<description><![CDATA[File to modify: wp-config.php &#38;amp;lt;?php /* Domain detection - Xác định tên miền */ $host = $HTTP_HOST; $parts = explode('.',$host); if ($parts[3] = &#34;&#34;) { $domain = $parts[0]; } else { $domain = $parts[1]; } /* Settings - Cài đặt */ switch ($domain) { case &#34;domain1&#34;: // &#34;domain&#34; in &#34;www.domain.com&#34; $db = &#34;database1&#34;; // the [...]]]></description>
			<content:encoded><![CDATA[<p>File to modify: wp-config.php</p>
<pre class="brush: php;">
&amp;amp;lt;?php
/* Domain detection - Xác định tên miền */

$host = $HTTP_HOST;
$parts = explode('.',$host);
if ($parts[3] = &quot;&quot;) {
$domain = $parts[0];
} else {
$domain = $parts[1];
}

/* Settings - Cài đặt */

switch ($domain) {
case &quot;domain1&quot;:		// &quot;domain&quot; in &quot;www.domain.com&quot;
$db = &quot;database1&quot;;		// the database for this domain
$user = &quot;username1&quot;;	// the username for this database
$password = &quot;pass1&quot;;	// the password for this database
$hostname = &quot;localhost&quot;;	// 99% chance you won't need to change this value
$table_prefix  = 'wp_';	// change for multiple installations in one database
$wplang = '';		// change to localize wordpress (must have an MO file in wp-includes/languages)
break;

case &quot;domain2&quot;:		// &quot;domain&quot; in &quot;www.domain.com&quot;
$db = &quot;database2&quot;;		// the database for this domain
$user = &quot;username2&quot;;	// the username for this database
$password = &quot;pass2&quot;;	// the password for this database
$hostname = &quot;localhost&quot;;	// 99% chance you won't need to change this value
$table_prefix  = 'wp_';	// change for multiple installations in one database
$wplang = '';		// change to localize wordpress (must have an MO file in wp-includes/languages)
break;
}

/* End of settings - Kết thúc phần cài đặt*/

define('DB_NAME', $db);
define('DB_USER', $user);
define('DB_PASSWORD', $password);
define('DB_HOST', $hostname);

define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
define ('WPLANG', $wplang);

// Enable the WordPress Object Cache:
define('ENABLE_CACHE', true);
//define('WP_MEMORY_LIMIT', '48MB');

define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');

?&amp;amp;gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.link2caro.net/read/multi-domains-with-one-wordpress-installation/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
