<?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://link2caro.net/tag/h%c6%b0%e1%bb%9bng-d%e1%ba%abn/feed/" rel="self" type="application/rss+xml" />
	<link>http://link2caro.net</link>
	<description></description>
	<lastBuildDate>Mon, 30 Jan 2012 09:41:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Multi Domains with one WordPress installation</title>
		<link>http://link2caro.net/read/multi-domains-with-one-wordpress-installation/</link>
		<comments>http://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]]></description>
			<content:encoded><![CDATA[<p>File to modify: wp-config.php</p>
<pre class="brush: php; title: ; notranslate">
&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://link2caro.net/read/multi-domains-with-one-wordpress-installation/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc
Database Caching 5/13 queries in 0.008 seconds using apc
Object Caching 372/385 objects using apc

Served from: link2caro.net @ 2012-02-10 06:02:28 -->
