<?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: Search Engine Friendly URLs in CakePHP</title>
	<atom:link href="http://klauzinski.com/php/cakephp/search-engine-friendly-urls-in-cakephp/feed" rel="self" type="application/rss+xml" />
	<link>http://klauzinski.com/php/cakephp/search-engine-friendly-urls-in-cakephp</link>
	<description>PHP, CakePHP, JavaScript, jQuery &#38; More</description>
	<lastBuildDate>Mon, 02 Jan 2012 20:42:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Ryan</title>
		<link>http://klauzinski.com/php/cakephp/search-engine-friendly-urls-in-cakephp/comment-page-1#comment-721</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Fri, 04 Jun 2010 16:07:02 +0000</pubDate>
		<guid isPermaLink="false">http://klauzinski.com/?p=8#comment-721</guid>
		<description>Hi, I&#039;m a non-developer seeking to create SEO friendly URLs in cake that don&#039;t display the &#039;controllers.&#039;:

The ideal end result:

domain.com/category1/
domain.com/category1/service1
domain.com/category1/service2
domain.com/category2/
domain.com/category1/service1

Etc, etc

However, it seems that we have to have something like

domain.com/article/view/category1/
domain.com/article/view/category1/service1

Etc, etc

Essentially, I dont&#039; want &#039;article&#039; &amp; &#039;view.&#039; How could this be implemented. I&#039;m thinking that &#039;rel canonical&#039; will not work because the &#039;home&#039; of the URL is unique and not duplicated. Thus I&#039;m thinking that mod_rewrite in Apache is the only option, but have no clue how this works with CakePHP. Many, many thanks in advance for your help!</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m a non-developer seeking to create SEO friendly URLs in cake that don&#8217;t display the &#8216;controllers.&#8217;:</p>
<p>The ideal end result:</p>
<p>domain.com/category1/<br />
domain.com/category1/service1<br />
domain.com/category1/service2<br />
domain.com/category2/<br />
domain.com/category1/service1</p>
<p>Etc, etc</p>
<p>However, it seems that we have to have something like</p>
<p>domain.com/article/view/category1/<br />
domain.com/article/view/category1/service1</p>
<p>Etc, etc</p>
<p>Essentially, I dont&#8217; want &#8216;article&#8217; &amp; &#8216;view.&#8217; How could this be implemented. I&#8217;m thinking that &#8216;rel canonical&#8217; will not work because the &#8216;home&#8217; of the URL is unique and not duplicated. Thus I&#8217;m thinking that mod_rewrite in Apache is the only option, but have no clue how this works with CakePHP. Many, many thanks in advance for your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip Klauzinski</title>
		<link>http://klauzinski.com/php/cakephp/search-engine-friendly-urls-in-cakephp/comment-page-1#comment-544</link>
		<dc:creator>Philip Klauzinski</dc:creator>
		<pubDate>Tue, 23 Mar 2010 17:18:07 +0000</pubDate>
		<guid isPermaLink="false">http://klauzinski.com/?p=8#comment-544</guid>
		<description>@Saliem: The .htaccess file is already set up to point all URLs to the CakePHP index file and route them from there. Handling the routing in the framework itself allows for cleaner and more centralized business logic, but of course everything is debatable.</description>
		<content:encoded><![CDATA[<p>@Saliem: The .htaccess file is already set up to point all URLs to the CakePHP index file and route them from there. Handling the routing in the framework itself allows for cleaner and more centralized business logic, but of course everything is debatable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saliem</title>
		<link>http://klauzinski.com/php/cakephp/search-engine-friendly-urls-in-cakephp/comment-page-1#comment-221</link>
		<dc:creator>Saliem</dc:creator>
		<pubDate>Thu, 27 Aug 2009 14:17:11 +0000</pubDate>
		<guid isPermaLink="false">http://klauzinski.com/?p=8#comment-221</guid>
		<description>Is there any reason this shouldn&#039;t be done via the .htaccess file?</description>
		<content:encoded><![CDATA[<p>Is there any reason this shouldn&#8217;t be done via the .htaccess file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Nay &#187; Useful CakePHP Tutorial Roundup for July 17, 2009</title>
		<link>http://klauzinski.com/php/cakephp/search-engine-friendly-urls-in-cakephp/comment-page-1#comment-194</link>
		<dc:creator>Jamie Nay &#187; Useful CakePHP Tutorial Roundup for July 17, 2009</dc:creator>
		<pubDate>Fri, 17 Jul 2009 15:12:04 +0000</pubDate>
		<guid isPermaLink="false">http://klauzinski.com/?p=8#comment-194</guid>
		<description>[...] Search Engine Friendly URLs in CakePHP - Philip Klauzinski (February 03, 2009) The SEO experts these days claim that we should be using hyphens instead of underscores in our URLs. Easy enough on a &#8216;regular&#8217; website or on a platform like Wordpress (which hyphenates by defualt), but this is actually a pretty tricky process in CakePHP. While you can use something like Mariano Iglesias&#8217; Sluggable Behavior to generate hyphenated slugs for your database items, good luck trying to replace the dashes in controller and action names! The only real solution, which, as Philip says in his tutorial, isn&#8217;t a solution at all, is to convert hyphens to underscores in your &lt;em&gt;app/config/bootstrap.php&lt;/em&gt; or &lt;em&gt;app/config/routes.php&lt;/em&gt;. Philip&#8217;s code for that is nice. But, this means you can&#8217;t take advantage of CakePHP&#8217;s reverse routing to generate links via the HtmlHelper and other tools. So you&#8217;re stuck writing your links manually, unless you want to hack or extend the HtmlHelper. So, the best part of this article might be the attention it draws to the issue of Cake&#8217;s support for SEO standards.     Categories: Blog, Featured, cakePHP Tags: CakePHP, usability        Comments (0) Trackbacks (0) Leave a comment Trackback [...]</description>
		<content:encoded><![CDATA[<p>[...] Search Engine Friendly URLs in CakePHP &#8211; Philip Klauzinski (February 03, 2009) The SEO experts these days claim that we should be using hyphens instead of underscores in our URLs. Easy enough on a &#8216;regular&#8217; website or on a platform like WordPress (which hyphenates by defualt), but this is actually a pretty tricky process in CakePHP. While you can use something like Mariano Iglesias&#8217; Sluggable Behavior to generate hyphenated slugs for your database items, good luck trying to replace the dashes in controller and action names! The only real solution, which, as Philip says in his tutorial, isn&#8217;t a solution at all, is to convert hyphens to underscores in your &lt;em&gt;app/config/bootstrap.php&lt;/em&gt; or &lt;em&gt;app/config/routes.php&lt;/em&gt;. Philip&#8217;s code for that is nice. But, this means you can&#8217;t take advantage of CakePHP&#8217;s reverse routing to generate links via the HtmlHelper and other tools. So you&#8217;re stuck writing your links manually, unless you want to hack or extend the HtmlHelper. So, the best part of this article might be the attention it draws to the issue of Cake&#8217;s support for SEO standards.     Categories: Blog, Featured, cakePHP Tags: CakePHP, usability        Comments (0) Trackbacks (0) Leave a comment Trackback [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hk</title>
		<link>http://klauzinski.com/php/cakephp/search-engine-friendly-urls-in-cakephp/comment-page-1#comment-64</link>
		<dc:creator>hk</dc:creator>
		<pubDate>Thu, 19 Mar 2009 11:31:27 +0000</pubDate>
		<guid isPermaLink="false">http://klauzinski.com/?p=8#comment-64</guid>
		<description>Hey Philip, thanks for this post. I think it would be helpful for others as well if you submit it on CakePHP site as an article.</description>
		<content:encoded><![CDATA[<p>Hey Philip, thanks for this post. I think it would be helpful for others as well if you submit it on CakePHP site as an article.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

