<?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>Aaron Mentele, Charisma 18 &#187; human-readable urls</title>
	<atom:link href="http://aaronmentele.com/tag/human-readable-urls/feed/" rel="self" type="application/rss+xml" />
	<link>http://aaronmentele.com</link>
	<description>personal blog of Aaron Mentele, web developer and partner at Electric Pulp</description>
	<lastBuildDate>Fri, 15 Jan 2010 06:33:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Rewriting URLs</title>
		<link>http://aaronmentele.com/2007/10/01/rewriting-urls/</link>
		<comments>http://aaronmentele.com/2007/10/01/rewriting-urls/#comments</comments>
		<pubDate>Mon, 01 Oct 2007 20:40:12 +0000</pubDate>
		<dc:creator>Aaron Mentele</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[human-readable urls]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://charisma18.com/2007/10/01/rewriting-urls/</guid>
		<description><![CDATA[In my previous post, I mentioned Apache mod_rewrite lets you take a URL like:
http://yoursite.com/products/index.php?cat=software&#38;item=Photoshop
and convert it to something like:
http://yoursite.com/products/software/Photoshop
There are two main benefits to formatting URLs the second way.

it&#8217;s easier for visitors to read.
it&#8217;s easier for Google to index.

You also gain a number of positive side effects, one of which is the ability to keep [...]]]></description>
			<content:encoded><![CDATA[<p>In my previous post, I mentioned Apache mod_rewrite lets you take a URL like:<br />
<em>http://yoursite.com/products/index.php?cat=software&amp;item=Photoshop</em><br />
and convert it to something like:<br />
<em>http://yoursite.com/products/software/Photoshop</em></p>
<p>There are two main benefits to formatting URLs the second way.</p>
<ul>
<li>it&#8217;s easier for visitors to read.</li>
<li>it&#8217;s easier for Google to index.</li>
</ul>
<p>You also gain a number of positive side effects, one of which is the ability to keep your variables hidden.  Basically, the only reason <em>not</em> to rewrite URLs is the added effort required to do it.  But, what if the added effort really wasn&#8217;t that significant?</p>
<p>It&#8217;s not.</p>
<p>First, let&#8217;s assume my earlier mention of Apache already turned off anyone not using it (if your rewrite engine doesn&#8217;t match mine, I&#8217;m no good to you.)  Let&#8217;s also assume those who already know how to do this (and probably better than I) already got bored and moved on.</p>
<p>Okay, now if you&#8217;re still with me, all you need to do is create an .htaccess file in the directory you&#8217;re looking to rewrite (/products/ in my case) with the following lines:</p>
<pre>
RewriteEngine on

#Rewrite for software categories
RewriteRule ^([^/\.]*)/([^/\.]*)/?$ index.php?cat=$1&amp;item=$2 [L]</pre>
<p>Variables work the same, queries work the same, etc.  It&#8217;s a lot like magic.</p>
<p>That&#8217;s it friends.  Hi5.</p>
]]></content:encoded>
			<wfw:commentRss>http://aaronmentele.com/2007/10/01/rewriting-urls/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Speeding</title>
		<link>http://aaronmentele.com/2007/09/30/speeding/</link>
		<comments>http://aaronmentele.com/2007/09/30/speeding/#comments</comments>
		<pubDate>Sun, 30 Sep 2007 19:53:30 +0000</pubDate>
		<dc:creator>Aaron Mentele</dc:creator>
				<category><![CDATA[Business of Geek]]></category>
		<category><![CDATA[human-readable urls]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[url optimization]]></category>

		<guid isPermaLink="false">http://charisma18.com/2007/09/30/speeding/</guid>
		<description><![CDATA[Last month, I dropped a few posts about url optimization.  The reason for three posts was simple &#8211; I couldn&#8217;t get it out of my head.
With our rate of development, it&#8217;s easy to get caught up in efficiencies and speed past the question: what&#8217;s the best way to do this?  In this case, [...]]]></description>
			<content:encoded><![CDATA[<p>Last month, I <a href="http://charisma18.com/2007/08/22/url-seo-piii-underscores-v-hyphens/">dropped</a> a <a href="http://charisma18.com/2007/08/22/url-seo-v-ue-pii-lhiob/">few posts</a> about <a href="http://charisma18.com/2007/08/21/url-optimization-seo-v-ue/">url optimization</a>.  The reason for three posts was simple &#8211; I couldn&#8217;t get it out of my head.</p>
<p>With our rate of development, it&#8217;s easy to get caught up in efficiencies and speed past the question: what&#8217;s the <em>best</em> way to do this?  In this case, rewriting URLs is the <em>best</em> way, but passing the query string was the <em>quickest</em>.</p>
<p>I&#8217;ve been trying to pay more attention to this since we got called out a few years ago for another quick practice: bad HTML code.  Two versions back, we launched our own site in non-standards-compliant form.  Didn&#8217;t even think about it, just coded it quick and launched.  The next day when the site caught some attention, a commenter pointed out our (my) nested tables.</p>
<p>We had the site re-coded that day, but it still bugs me that someone else had to catch us (me) speeding before I caught it myself.</p>
<p>More recently, we&#8217;ve been called out on a few <a href="http://truemors.com">Truemors</a> hacks.  Most of these were rants on the process vs the mechanism, but there have been a <a href="http://userfirstweb.com/85/repaying-guy-kawasaki-%e2%80%94-truemors-site-optimization-analysis/">few</a> that I half expect to be followed by a consulting bill.</p>
<p>I&#8217;m finding criticism to be a hell of a resource.</p>
<p>We didn&#8217;t actually get called out on URL rewrites, but I&#8217;m sure it was only a matter of time.  We&#8217;ve since rolled it into just about everything we do, and like cutting over to good code (the kind that validates) or optimizing open-source apps, we&#8217;re finding that it&#8217;s exceptionally easy to do.</p>
<p>I&#8217;ll follow this with a post showing exactly how easy it is to rewrite URLs.  If I can save just one person the emotional distress I suffered by being made fun of by a mean high school kid, it&#8217;s worth it.</p>
]]></content:encoded>
			<wfw:commentRss>http://aaronmentele.com/2007/09/30/speeding/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
