<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Fri, 04 Jul 2008 16:36:39 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Mind Tree Blog: Friendly URLs in PHP: why do you care?]]></title>
      <guid>http://www.phpdeveloper.org/news/10492</guid>
      <link>http://www.phpdeveloper.org/news/10492</link>
      <description><![CDATA[<p>
<a href="http://www.hurricanesoftwares.com/2008/06/24/friendly-urls-in-php-why-do-you-care/">This new post</a> from the Mind Tree blog (at hurricanesoftware.com) asks the question "why do you care about friendly URLs in PHP applications?"
</p>
<blockquote>
Nice URLs, readable URLs, search-engine-friendly URLs. Different names same deal. [...] Turns out this isn't all that hard with PHP - in fact it can turn into something that's very useful from more than just a readability viewpoint.
</blockquote>
<p>
He shows how to <a href="http://www.hurricanesoftwares.com/2008/06/24/friendly-urls-in-php-why-do-you-care/">use mod_rewrite</a> and an .htaccess file to automatically grab the request and map it to the right place. Then, the PHP script looks at the incoming data and pushes the correct page back out to the browser. He's also included some modifications to the original idea that allow for numeric grouping and named groups for rewriting content.
</p>]]></description>
      <pubDate>Thu, 26 Jun 2008 10:26:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tim Bromhead's Blog: Super friendly URLs - handling spaces with URL Rewrites and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/7315</guid>
      <link>http://www.phpdeveloper.org/news/7315</link>
      <description><![CDATA[<p>
In <a href="http://bla.st/site/blog/64/">a new entry</a> today, <i>Tim Bromhead</i> shares his method for creating "super friendly urls" for a site's users using mod_rewrite:
</p>
<blockquote>
Today we are going to show how to make the URLs with spaces super easy to type for users. bla.st uses dashes in the URLs to represent spaces eg. http//bla.st/web-design/. We chose dashes over underscores because underscores can get lost with underlined links, and we think they look nicer.
</blockquote>
<p>
He <a href="http://bla.st/site/blog/64/">includes the Apache config</a> information for working with the VirtualHost entry and the simple PHP script to handle the requests. It looks in the SERVER superglobal, at the QUERY_STRING to see what the user is requesting and does an append and redirect accordingly. This example is made to take any form of a space in the URL (including underscores and %20), parse it out, and pass the user along correctly to the page they want.
</p>]]></description>
      <pubDate>Tue, 20 Feb 2007 13:35:00 -0600</pubDate>
    </item>
  </channel>
</rss>
