<?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>entroducing.com &#187; apache</title>
	<atom:link href="http://www.entroducing.com/view/category/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://www.entroducing.com</link>
	<description>to prove that i have too much time</description>
	<lastBuildDate>Sun, 15 May 2011 06:00:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>cakephp and wordpress in single domain</title>
		<link>http://www.entroducing.com/view/cakephp-and-wordpress-in-single-domain</link>
		<comments>http://www.entroducing.com/view/cakephp-and-wordpress-in-single-domain#comments</comments>
		<pubDate>Tue, 27 Oct 2009 13:00:22 +0000</pubDate>
		<dc:creator>Benny</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.entroducing.com/?p=62</guid>
		<description><![CDATA[If you are hosting multiple cakephp websites TOGETHER with your wordpress in one single domain, you might encountered some errors or incorrectly display css or images in your cakephp web application. This is due to the default mod_rewrite rules  that come with cakephp installation as it is assume that the application is running for one [...]]]></description>
			<content:encoded><![CDATA[<p>If you are hosting multiple cakephp websites TOGETHER with your wordpress in one single domain, you might encountered some errors or incorrectly display css or images in your cakephp web application.</p>
<p>This is due to the default mod_rewrite rules  that come with cakephp installation as it is assume that the application is running for one domain name only.</p>
<p>Fortunately, it is possible to amend that mod_rewrite rules to allow apache to customise different routes for different applications.</p>
<p>Before I explain on how to do it, lets see how I configure entroducing.com</p>
<p>www.entroducing.com -&gt; will call default wordpress (this blog)<br />
www.entroducing.com<strong>/project/app1</strong>-&gt; will run <strong>app1 </strong>cakephp<br />
www.entroducing.com<strong>/project/app2</strong>&gt; will run <strong>app2 </strong>cakephp</p>
<p>In the webroot folder of your cakephp application, edit the .htaccess file and add the following line</p>
<pre class="brush: shell">
RewriteBase /[subdirectory]/[applicationname]
</pre>
<p>And it should looks like this</p>
<pre class="brush: shell">
&amp;lt;IfModule mod_rewrite.c&amp;gt;
    RewriteEngine On
    RewriteBase /project/stepup
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
&amp;lt;/IfModule&amp;gt;
</pre>
<p>Save the file and test your application. It should works fine now. <img src='http://www.entroducing.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.entroducing.com%2Fview%2Fcakephp-and-wordpress-in-single-domain&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.entroducing.com/view/cakephp-and-wordpress-in-single-domain/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

