<?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>multiple domains &#8211; Blogvaria</title>
	<atom:link href="https://blog.evaria.com/key/multiple-domains/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.evaria.com</link>
	<description>The personal pages</description>
	<lastBuildDate>Tue, 02 Jun 2009 16:04:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
<site xmlns="com-wordpress:feed-additions:1">1077093</site>	<item>
		<title>Multiple domains on one WP installation</title>
		<link>https://blog.evaria.com/2009/multiple-domains-on-one-wp-installation/</link>
					<comments>https://blog.evaria.com/2009/multiple-domains-on-one-wp-installation/#comments</comments>
		
		<dc:creator><![CDATA[Thomas]]></dc:creator>
		<pubDate>Tue, 02 Jun 2009 16:04:57 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[multiple domains]]></category>
		<guid isPermaLink="false">http://blog.evaria.com/?p=1104</guid>

					<description><![CDATA[This may not be the greatest SEO idea but it may be useful in some cases. Anyway I thought I&#8217;d share this little trick as it proved very handy for &#8230; ]]></description>
										<content:encoded><![CDATA[<p>This may not be the greatest SEO idea but it may be useful in some cases. Anyway I thought I&#8217;d share this little trick as it proved very handy for one of my recent clients.</p>
<p>Basically WordPress allows you to manipulate your configuration file so that when certain criterions are met you can override the default home and blog URI&#8217;s set in the database.</p>
<p>By doing so you can have more or less unlimited domains pulling the same files and data from one single WordPress installation.</p>
<p><strong>Here&#8217;s how you do it</strong></p>
<p>Open <em>wp-config.php</em> in your favourite editor (Notepad, Dreamweaver etc.) and add the following:</p>
<pre>if (preg_match("/\bwww.example1.com\b/i", $_SERVER['REQUEST_URI']) || preg_match("/\bwww.example1.com\b/i", $_SERVER['HTTP_HOST'])) {
define('WP_SITEURL', 'http://www.example1.com');
define('WP_HOME', 'http://www.example1.com');
}</pre>
<p>If you need more domains just add more by repeating the above starting the next &#8220;block&#8221; with <em>elseif</em>.</p>
<p>Feel free to comment and/or suggest different ways of doing this.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.evaria.com/2009/multiple-domains-on-one-wp-installation/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1104</post-id>	</item>
	</channel>
</rss>
