<?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: Beautifying URIs</title>
	<atom:link href="http://people.w3.org/~dom/archives/2005/07/beautifying-uris/feed/" rel="self" type="application/rss+xml" />
	<link>http://people.w3.org/~dom/archives/2005/07/beautifying-uris/</link>
	<description>W3C has the DOM, and the Dom ; pick the one you prefer.</description>
	<lastBuildDate>Mon, 16 Nov 2009 09:27:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: paolo</title>
		<link>http://people.w3.org/~dom/archives/2005/07/beautifying-uris/comment-page-1/#comment-67525</link>
		<dc:creator>paolo</dc:creator>
		<pubDate>Sun, 18 Jan 2009 11:14:10 +0000</pubDate>
		<guid isPermaLink="false">http://people.w3.org/~dom/archives/2005/07/beautifying-uris/#comment-67525</guid>
		<description>Very useful. Thank you. I am trying Joshua&#039;s suggestion for the moment.
I need to change the RewriteRule to: 
RewriteRule (.+)/ $1?%1%2 [N,R,NE]   (with a slash added)

But I wonder if it would be better to do it in PHP as the article suggests? And, if so, what is the best way of connecting the function above to the submit button on a form?</description>
		<content:encoded><![CDATA[<p>Very useful. Thank you. I am trying Joshua&#8217;s suggestion for the moment.<br />
I need to change the RewriteRule to:<br />
RewriteRule (.+)/ $1?%1%2 [N,R,NE]   (with a slash added)</p>
<p>But I wonder if it would be better to do it in PHP as the article suggests? And, if so, what is the best way of connecting the function above to the submit button on a form?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Ferraro</title>
		<link>http://people.w3.org/~dom/archives/2005/07/beautifying-uris/comment-page-1/#comment-20019</link>
		<dc:creator>Joshua Ferraro</dc:creator>
		<pubDate>Wed, 11 Oct 2006 00:12:52 +0000</pubDate>
		<guid isPermaLink="false">http://people.w3.org/~dom/archives/2005/07/beautifying-uris/#comment-20019</guid>
		<description>Of course, another way to remove empty parameters is with mod_redirect ... here&#039;s a recipe I&#039;ve used with some success:

   RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&amp;(.*)
   RewriteRule (.+) $1?%1%2 [N,R,NE]</description>
		<content:encoded><![CDATA[<p>Of course, another way to remove empty parameters is with mod_redirect &#8230; here&#8217;s a recipe I&#8217;ve used with some success:</p>
<p>   RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&amp;(.*)<br />
   RewriteRule (.+) $1?%1%2 [N,R,NE]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 虚拟主机</title>
		<link>http://people.w3.org/~dom/archives/2005/07/beautifying-uris/comment-page-1/#comment-10950</link>
		<dc:creator>虚拟主机</dc:creator>
		<pubDate>Thu, 29 Jun 2006 08:00:30 +0000</pubDate>
		<guid isPermaLink="false">http://people.w3.org/~dom/archives/2005/07/beautifying-uris/#comment-10950</guid>
		<description>Thanks for the information. This is very useful</description>
		<content:encoded><![CDATA[<p>Thanks for the information. This is very useful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Nottingham</title>
		<link>http://people.w3.org/~dom/archives/2005/07/beautifying-uris/comment-page-1/#comment-3902</link>
		<dc:creator>Mark Nottingham</dc:creator>
		<pubDate>Sun, 10 Jul 2005 20:20:53 +0000</pubDate>
		<guid isPermaLink="false">http://people.w3.org/~dom/archives/2005/07/beautifying-uris/#comment-3902</guid>
		<description>Good stuff!

The only caveat I have is that some people will assume that because they have &quot;pretty&quot; URIs, they somehow have a more Web-friendly app. While the URIs look better, they don&#039;t get other benefits like caching, because it&#039;s still script-based, and doesn&#039;t supply a validator for caches to reuse.

That isn&#039;t to say that this shouldn&#039;t be done, of course; only that more is needed to get parity with filesystem-based resource (which usually do supply Last-Modified, ETag, etc.).

shameless plug
One way to do this with PHP can be found at: http://www.mnot.net/cgi_buffer/ 
/shameless plug

Cheers,</description>
		<content:encoded><![CDATA[<p>Good stuff!</p>
<p>The only caveat I have is that some people will assume that because they have &#8220;pretty&#8221; URIs, they somehow have a more Web-friendly app. While the URIs look better, they don&#8217;t get other benefits like caching, because it&#8217;s still script-based, and doesn&#8217;t supply a validator for caches to reuse.</p>
<p>That isn&#8217;t to say that this shouldn&#8217;t be done, of course; only that more is needed to get parity with filesystem-based resource (which usually do supply Last-Modified, ETag, etc.).</p>
<p>shameless plug<br />
One way to do this with PHP can be found at: <a href="http://www.mnot.net/cgi_buffer/" rel="nofollow">http://www.mnot.net/cgi_buffer/</a><br />
/shameless plug</p>
<p>Cheers,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gregR</title>
		<link>http://people.w3.org/~dom/archives/2005/07/beautifying-uris/comment-page-1/#comment-3901</link>
		<dc:creator>gregR</dc:creator>
		<pubDate>Wed, 06 Jul 2005 16:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://people.w3.org/~dom/archives/2005/07/beautifying-uris/#comment-3901</guid>
		<description>Thanks for your rapid response Dom, I&#039;ll try this tomorrow and give you the result.</description>
		<content:encoded><![CDATA[<p>Thanks for your rapid response Dom, I&#8217;ll try this tomorrow and give you the result.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dom</title>
		<link>http://people.w3.org/~dom/archives/2005/07/beautifying-uris/comment-page-1/#comment-3900</link>
		<dc:creator>dom</dc:creator>
		<pubDate>Wed, 06 Jul 2005 16:04:50 +0000</pubDate>
		<guid isPermaLink="false">http://people.w3.org/~dom/archives/2005/07/beautifying-uris/#comment-3900</guid>
		<description>Hi Greg, I&#039;m not sure the example you give is really using hierarchical data, with the possible exception for &quot;line&quot; vs &quot;bar&quot; graphics. For this one, I would have my URIs generated à la &lt;code&gt;http://www.example.com/graphics/bar?data=-10,16,2.5&amp;height&#8230;&lt;/code&gt;.
To that end, you could use the following rewrite rule:
&lt;code&gt;
RewriteEngine On
RewriteRule /graphics
RewriteRule ^bar$ /generator.php?type=bar [P,QSA]
&lt;/code&gt;
&lt;code&gt;P&lt;/code&gt; here stands for Proxy (and will work only if Apache has mod_proxy available) and will thus hides the sub-request. &lt;code&gt;QSA&lt;/code&gt; stands for Query String Appending, and means that the query string received on the original resource should be appended when the proxy-redirect is done.</description>
		<content:encoded><![CDATA[<p>Hi Greg, I&#8217;m not sure the example you give is really using hierarchical data, with the possible exception for &#8220;line&#8221; vs &#8220;bar&#8221; graphics. For this one, I would have my URIs generated à la <code><a href="http://www.example.com/graphics/bar?data=-10,16,2.5&amp;height&#038;hellip" rel="nofollow">http://www.example.com/graphics/bar?data=-10,16,2.5&amp;height&#038;hellip</a>;</code>.<br />
To that end, you could use the following rewrite rule:<br />
<code><br />
RewriteEngine On<br />
RewriteRule /graphics<br />
RewriteRule ^bar$ /generator.php?type=bar [P,QSA]<br />
</code><br />
<code>P</code> here stands for Proxy (and will work only if Apache has mod_proxy available) and will thus hides the sub-request. <code>QSA</code> stands for Query String Appending, and means that the query string received on the original resource should be appended when the proxy-redirect is done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gregR</title>
		<link>http://people.w3.org/~dom/archives/2005/07/beautifying-uris/comment-page-1/#comment-3898</link>
		<dc:creator>gregR</dc:creator>
		<pubDate>Wed, 06 Jul 2005 15:24:58 +0000</pubDate>
		<guid isPermaLink="false">http://people.w3.org/~dom/archives/2005/07/beautifying-uris/#comment-3898</guid>
		<description>Very useful Dominique, I&#039;m sure that not every user of blogging softwares understands rewrtiting rules and how they works.

Now I have a question, I implemented a modified (simplified to be honest!) version of a web-service created by J. Gregorio : Sparklines : http://bitworking.org/projects/sparklines/
Sorry, no URI to provide because of a restricted access.

Written in php, it takes some GET variables to produce an image with gd, my uri&#039;s are actually
http://www.example.com/generator.php?type=line&amp;data=-10,15,2.5&amp;height=15&amp;step=4
for lines graphics and
http://www.example.com/generator.php?type=bar&amp;data=-10,15,2.5&amp;height=15&amp;width_b=3&amp;treshold=0&amp;abovecolor=red&amp;belowcolor=blue
for bar graphics

For every &quot;type&quot; of graphics, there are common parameters &quot;data&quot; and &quot;height&quot; and particular parameters :
&quot;step&quot; for the line &quot;type&quot;
&quot;treshold&quot;, &quot;abovecolor&quot;, &quot;width_b&quot; and &quot;belowcolor&quot; for the bar &quot;type&quot;.

It seems kind of hierarchical, but to use mod_rewrite, do I need to have several rewriting rules in the same .htaccess ?</description>
		<content:encoded><![CDATA[<p>Very useful Dominique, I&#8217;m sure that not every user of blogging softwares understands rewrtiting rules and how they works.</p>
<p>Now I have a question, I implemented a modified (simplified to be honest!) version of a web-service created by J. Gregorio : Sparklines : <a href="http://bitworking.org/projects/sparklines/" rel="nofollow">http://bitworking.org/projects/sparklines/</a><br />
Sorry, no URI to provide because of a restricted access.</p>
<p>Written in php, it takes some GET variables to produce an image with gd, my uri&#8217;s are actually<br />
<a href="http://www.example.com/generator.php?type=line&amp;data=-10,15,2.5&amp;height=15&amp;step=4" rel="nofollow">http://www.example.com/generator.php?type=line&amp;data=-10,15,2.5&amp;height=15&amp;step=4</a><br />
for lines graphics and<br />
<a href="http://www.example.com/generator.php?type=bar&amp;data=-10,15,2.5&amp;height=15&amp;width_b=3&amp;treshold=0&amp;abovecolor=red&amp;belowcolor=blue" rel="nofollow">http://www.example.com/generator.php?type=bar&amp;data=-10,15,2.5&amp;height=15&amp;width_b=3&amp;treshold=0&amp;abovecolor=red&amp;belowcolor=blue</a><br />
for bar graphics</p>
<p>For every &#8220;type&#8221; of graphics, there are common parameters &#8220;data&#8221; and &#8220;height&#8221; and particular parameters :<br />
&#8220;step&#8221; for the line &#8220;type&#8221;<br />
&#8220;treshold&#8221;, &#8220;abovecolor&#8221;, &#8220;width_b&#8221; and &#8220;belowcolor&#8221; for the bar &#8220;type&#8221;.</p>
<p>It seems kind of hierarchical, but to use mod_rewrite, do I need to have several rewriting rules in the same .htaccess ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
