<?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: CakePHP in a subdirectory; no trailing slash</title>
	<atom:link href="http://csummers.com/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/feed/" rel="self" type="application/rss+xml" />
	<link>http://csummers.com/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/</link>
	<description>%w{life code ruby}.map { &#124;i&#124; "#{i} is awesome" }</description>
	<lastBuildDate>Sun, 30 Jan 2011 20:55:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Kobyn</title>
		<link>http://csummers.com/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/comment-page-1/#comment-163</link>
		<dc:creator>Kobyn</dc:creator>
		<pubDate>Sun, 30 Jan 2011 20:55:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.csummers.org/index.php/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/#comment-163</guid>
		<description>This works for me but I lose all my CSS and javascript. I appreciate any help.</description>
		<content:encoded><![CDATA[<p>This works for me but I lose all my CSS and javascript. I appreciate any help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://csummers.com/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/comment-page-1/#comment-161</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Tue, 16 Nov 2010 00:09:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.csummers.org/index.php/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/#comment-161</guid>
		<description>Just because Jeff&#039;s site has been restructured and his posts are gone:
If you’ve ever run CakePHP on Apache 1.3.x in a subdirectory, most likely you’ve come upon a “Bad Request” error when you failed to append the trailing slash on your subdirectory. Here’s a hack to solve your mod_rewrite woes:

Edit the .htaccess file in your subdirectory and add the line containing you_subdir_here. That should do it. You should only have to modify the base .htaccess file.

RewriteEngine on
RewriteRule your_subdir_here$ /your_subdir_here/ [L]
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L] 

This was his original post.  It works where no other tricks worked.</description>
		<content:encoded><![CDATA[<p>Just because Jeff&#8217;s site has been restructured and his posts are gone:<br />
If you’ve ever run CakePHP on Apache 1.3.x in a subdirectory, most likely you’ve come upon a “Bad Request” error when you failed to append the trailing slash on your subdirectory. Here’s a hack to solve your mod_rewrite woes:</p>
<p>Edit the .htaccess file in your subdirectory and add the line containing you_subdir_here. That should do it. You should only have to modify the base .htaccess file.</p>
<p>RewriteEngine on<br />
RewriteRule your_subdir_here$ /your_subdir_here/ [L]<br />
RewriteRule ^$ app/webroot/ [L]<br />
RewriteRule (.*) app/webroot/$1 [L] </p>
<p>This was his original post.  It works where no other tricks worked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jun</title>
		<link>http://csummers.com/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/comment-page-1/#comment-157</link>
		<dc:creator>Jun</dc:creator>
		<pubDate>Fri, 17 Sep 2010 03:14:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.csummers.org/index.php/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/#comment-157</guid>
		<description>The solution works for me,  but another problem occurred.

This time:
OK
http://www.example.com/sub/
http://www.example.com/sub

NG
http://www.example.com/sub/action/
http://www.example.com/sub/action

Then I fixed .htaccess in sub, like, 


   RewriteEngine on
   RewriteRule    ^sub$ sub/app/webroot/    [L]
   RewriteCond    ${REQUEST_URI} !^sub$
    RewriteRule    (.*) app/webroot/$1 [L]


I use CakePHP 1.3.4, Apache/1.3.4 and PHP 5.2.14

Thank you and hope this helps someone.</description>
		<content:encoded><![CDATA[<p>The solution works for me,  but another problem occurred.</p>
<p>This time:<br />
OK<br />
<a href="http://www.example.com/sub/" rel="nofollow">http://www.example.com/sub/</a><br />
<a href="http://www.example.com/sub" rel="nofollow">http://www.example.com/sub</a></p>
<p>NG<br />
<a href="http://www.example.com/sub/action/" rel="nofollow">http://www.example.com/sub/action/</a><br />
<a href="http://www.example.com/sub/action" rel="nofollow">http://www.example.com/sub/action</a></p>
<p>Then I fixed .htaccess in sub, like, </p>
<p>   RewriteEngine on<br />
   RewriteRule    ^sub$ sub/app/webroot/    [L]<br />
   RewriteCond    ${REQUEST_URI} !^sub$<br />
    RewriteRule    (.*) app/webroot/$1 [L]</p>
<p>I use CakePHP 1.3.4, Apache/1.3.4 and PHP 5.2.14</p>
<p>Thank you and hope this helps someone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drew G</title>
		<link>http://csummers.com/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/comment-page-1/#comment-155</link>
		<dc:creator>Drew G</dc:creator>
		<pubDate>Fri, 18 Jun 2010 18:16:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.csummers.org/index.php/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/#comment-155</guid>
		<description>Thanks Curtis! Your solution worked for me.</description>
		<content:encoded><![CDATA[<p>Thanks Curtis! Your solution worked for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Betim</title>
		<link>http://csummers.com/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/comment-page-1/#comment-154</link>
		<dc:creator>Betim</dc:creator>
		<pubDate>Thu, 18 Feb 2010 19:48:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.csummers.org/index.php/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/#comment-154</guid>
		<description>I use cpanel and I did all your steps but it didn&#039;t wok for me unfortunately so I get the same error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@example.info and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

please can you hel me further on this. I did put my files to a folder below the root. example.com/myfiles</description>
		<content:encoded><![CDATA[<p>I use cpanel and I did all your steps but it didn&#8217;t wok for me unfortunately so I get the same error:</p>
<p>Internal Server Error</p>
<p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p>
<p>Please contact the server administrator, <a href="mailto:webmaster@example.info">webmaster@example.info</a> and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p>
<p>More information about this error may be available in the server error log.</p>
<p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p>
<p>please can you hel me further on this. I did put my files to a folder below the root. example.com/myfiles</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tiggr</title>
		<link>http://csummers.com/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/comment-page-1/#comment-118</link>
		<dc:creator>Tiggr</dc:creator>
		<pubDate>Wed, 13 Aug 2008 07:25:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.csummers.org/index.php/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/#comment-118</guid>
		<description>The first solution, that works for me!

Thank you very much!</description>
		<content:encoded><![CDATA[<p>The first solution, that works for me!</p>
<p>Thank you very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Loiselle</title>
		<link>http://csummers.com/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/comment-page-1/#comment-117</link>
		<dc:creator>Jeff Loiselle</dc:creator>
		<pubDate>Thu, 19 Apr 2007 14:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.csummers.org/index.php/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/#comment-117</guid>
		<description>I wrote a different hack for this as well. &lt;a href=&quot;http://jeff.loiselles.com/wordpress/?p=22&quot; rel=&quot;nofollow&quot;&gt;http://jeff.loiselles.com/wordpress/?p=22&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I wrote a different hack for this as well. <a href="http://jeff.loiselles.com/wordpress/?p=22" rel="nofollow">http://jeff.loiselles.com/wordpress/?p=22</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy</title>
		<link>http://csummers.com/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/comment-page-1/#comment-116</link>
		<dc:creator>Jimmy</dc:creator>
		<pubDate>Mon, 05 Feb 2007 13:05:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.csummers.org/index.php/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/#comment-116</guid>
		<description>This works for me but I lose all my CSS. Any ideas why?</description>
		<content:encoded><![CDATA[<p>This works for me but I lose all my CSS. Any ideas why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: curt</title>
		<link>http://csummers.com/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/comment-page-1/#comment-115</link>
		<dc:creator>curt</dc:creator>
		<pubDate>Tue, 16 Jan 2007 00:15:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.csummers.org/index.php/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/#comment-115</guid>
		<description>403 Errors are usually related to your file permissions and/or your Apache configuration.  Based on &lt;a href=&quot;http://wordpress.org/support/topic/32727&quot; rel=&quot;nofollow&quot;&gt;this Wordpress post about mod_rewrite and 403&#039;s&lt;/a&gt;, I suggest you try adding  Options +FollowSymlinks to your .htaccess or to your virtual host config in httpd.conf.</description>
		<content:encoded><![CDATA[<p>403 Errors are usually related to your file permissions and/or your Apache configuration.  Based on <a href="http://wordpress.org/support/topic/32727" rel="nofollow">this WordPress post about mod_rewrite and 403&#8242;s</a>, I suggest you try adding  Options +FollowSymlinks to your .htaccess or to your virtual host config in httpd.conf.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Day</title>
		<link>http://csummers.com/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/comment-page-1/#comment-114</link>
		<dc:creator>Jeff Day</dc:creator>
		<pubDate>Mon, 15 Jan 2007 23:59:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.csummers.org/index.php/2006/11/02/cakephp-in-a-subdirectory-no-trailing-slash/#comment-114</guid>
		<description>That worked out smashingly on the local copy, but now I tried it out on our server and it starts throwing 403 errors for anything on the site (even pages that aren&#039;t in the admin directory).  Any ideas on what might be causing the problem?</description>
		<content:encoded><![CDATA[<p>That worked out smashingly on the local copy, but now I tried it out on our server and it starts throwing 403 errors for anything on the site (even pages that aren&#8217;t in the admin directory).  Any ideas on what might be causing the problem?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

